You are here

public function BusinessRulesDebugBlock::__construct in Business Rules 8

Same name and namespace in other branches
  1. 2.x 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\Block

Code

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');
}