public function BusinessRulesDebugBlock::__construct in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Plugin/Block/BusinessRulesDebugBlock.php \Drupal\business_rules\Plugin\Block\BusinessRulesDebugBlock::__construct()
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ BusinessRulesDebugBlock.php, line 42
Class
- BusinessRulesDebugBlock
- Class BusinessRulesDebugBlock.
Namespace
Drupal\business_rules\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ContainerInterface $container) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->config = $container
->get('config.factory')
->get('business_rules.settings');
$this->keyvalue = $container
->get('keyvalue.expirable')
->get('business_rules.debug');
}