function EventComponentResolver::__construct
Constructs the object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\rules\Engine\ExpressionManagerInterface $expression_manager: The rules expression plugin manager.
File
-
src/
ComponentResolver/ EventComponentResolver.php, line 37
Class
- EventComponentResolver
- Resolves components that hold all reaction rules for a given event.
Namespace
Drupal\rules\ComponentResolverCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ExpressionManagerInterface $expression_manager) {
$this->entityStorage = $entity_type_manager->getStorage('rules_reaction_rule');
$this->expressionManager = $expression_manager;
}