public function ModerationOptOutPublishNode::__construct in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/Plugin/Action/ModerationOptOutPublishNode.php \Drupal\workbench_moderation\Plugin\Action\ModerationOptOutPublishNode::__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/ ModerationOptOutPublishNode.php, line 30
Class
- ModerationOptOutPublishNode
- 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, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
$this->moderationInfo = $mod_info;
}