You are here

public function HasModeratedContentType::__construct in Moderation Dashboard 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Condition/HasModeratedContentType.php \Drupal\moderation_dashboard\Plugin\Condition\HasModeratedContentType::__construct()

HasModeratedContentType constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\content_moderation\ModerationInformationInterface $moderation_information: The moderation information service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: The bundle information service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/HasModeratedContentType.php, line 60

Class

HasModeratedContentType
Provides a 'Has Moderated Content Type' condition.

Namespace

Drupal\moderation_dashboard\Plugin\Condition

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModerationInformationInterface $moderation_information, EntityTypeBundleInfoInterface $bundle_info, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moderationInformation = $moderation_information;
  $this->bundleInfo = $bundle_info;
  $this->entityTypeManager = $entity_type_manager;
}