public function ModerationOptOutUnpublishNode::__construct in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 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 UnpublishNode::__construct
File
- src/
Plugin/ Action/ ModerationOptOutUnpublishNode.php, line 24
Class
- ModerationOptOutUnpublishNode
- Alternate action plugin that knows to opt-out of modifying moderated entites.
Namespace
Drupal\workbench_moderation\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ModerationInformationInterface $mod_info) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moderationInfo = $mod_info;
}