function EntityActionBase::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php \Drupal\Core\Action\Plugin\Action\EntityActionBase::__construct()
  2. 10 core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php \Drupal\Core\Action\Plugin\Action\EntityActionBase::__construct()
  3. 11.x core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php \Drupal\Core\Action\Plugin\Action\EntityActionBase::__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.

8 calls to EntityActionBase::__construct()
DeleteAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php
Constructs a new DeleteAction object.
ModerationOptOutPublish::__construct in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutPublish.php
ModerationOptOutPublish constructor.
ModerationOptOutUnpublish::__construct in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutUnpublish.php
ModerationOptOutUnpublish constructor.
PublishComment::__construct in core/modules/comment/src/Plugin/Action/PublishComment.php
Constructs a EntityActionBase object.
PublishNode::__construct in core/modules/node/src/Plugin/Action/PublishNode.php
Constructs a EntityActionBase object.

... See full list

8 methods override EntityActionBase::__construct()
DeleteAction::__construct in core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php
Constructs a new DeleteAction object.
ModerationOptOutPublish::__construct in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutPublish.php
ModerationOptOutPublish constructor.
ModerationOptOutUnpublish::__construct in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutUnpublish.php
ModerationOptOutUnpublish constructor.
PublishComment::__construct in core/modules/comment/src/Plugin/Action/PublishComment.php
Constructs a EntityActionBase object.
PublishNode::__construct in core/modules/node/src/Plugin/Action/PublishNode.php
Constructs a EntityActionBase object.

... See full list

File

core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php, line 35

Class

EntityActionBase
Base class for entity-based actions.

Namespace

Drupal\Core\Action\Plugin\Action

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.