You are here

public function Term::__construct in Term condition 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Condition/Term.php \Drupal\term_condition\Plugin\Condition\Term::__construct()

Creates a new ExampleCondition instance.

Parameters

EntityTypeManagerInterface $entity_manager: The entity storage.

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/Term.php, line 54
Contains \Drupal\term_condition\Plugin\Condition\Term.

Class

Term
Provides a 'Term' condition to enable a condition based in module selected status.

Namespace

Drupal\term_condition\Plugin\Condition

Code

public function __construct(EntityTypeManagerInterface $entity_manager, array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_manager;
}