public function BusinessRulesUtil::__construct in Business Rules 8
Same name and namespace in other branches
- 2.x src/Util/BusinessRulesUtil.php \Drupal\business_rules\Util\BusinessRulesUtil::__construct()
BusinessRulesUtil constructor.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The services container.
File
- src/
Util/ BusinessRulesUtil.php, line 159
Class
- BusinessRulesUtil
- Class BusinessRulesUtil.
Namespace
Drupal\business_rules\UtilCode
public function __construct(ContainerInterface $container) {
$this->container = $container;
$this->entityFieldManager = $container
->get('entity_field.manager');
$this->fieldTypePluginManager = $container
->get('plugin.manager.field.field_type');
$this->entityTypeBundleInfo = $container
->get('entity_type.bundle.info');
$this->configFactory = $container
->get('config.factory');
$this->entityTypeManager = $container
->get('entity_type.manager');
$this->entityTypeBundleInfo = $container
->get('entity_type.bundle.info');
$this->variableManager = $container
->get('plugin.manager.business_rules.variable');
$this->request = $container
->get('request_stack')
->getCurrentRequest();
$this->logger = $container
->get('logger.factory')
->get('business_rules');
$this->keyValueExpirable = $container
->get('keyvalue.expirable');
$this->flowchart = $container
->get('business_rules.flowchart');
$this->moduleHandler = $container
->get('module_handler');
$this->token = $container
->get('token');
if ($this->moduleHandler
->moduleExists('token')) {
$this->tokenTree = $container
->get('token.tree_builder');
}
else {
$this->tokenTree = NULL;
}
}