public function NodeBulkForm::__construct

Constructs a new NodeBulkForm object.

Overrides BulkFormBase::__construct

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/NodeBulkForm.php, line 25
Contains \Drupal\node\Plugin\views\field\NodeBulkForm.

Class

NodeBulkForm
Defines a node operations bulk form element.

Namespace

Drupal\node\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityManager $manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $manager);

  // Filter the actions to only include those for the 'node' entity type.
  $this->actions = array_filter($this->actions, function ($action) {
    return $action
      ->getType() == 'node';
  });
}