You are here

public function ModerationOptOutUnpublishNode::__construct in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/ModerationOptOutUnpublishNode.php \Drupal\workbench_moderation\Plugin\Action\ModerationOptOutUnpublishNode::__construct()

Constructs a EntityActionBase object.

Parameters

mixed[] $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\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides EntityActionBase::__construct

File

src/Plugin/Action/ModerationOptOutUnpublishNode.php, line 30

Class

ModerationOptOutUnpublishNode
Alternate action plugin that knows to opt-out of modifying moderated entites.

Namespace

Drupal\workbench_moderation\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModerationInformationInterface $mod_info, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
  $this->moderationInfo = $mod_info;
}