public function UserBulkForm::__construct

Constructs a new BulkForm object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityManager $manager: The entity manager.

Overrides BulkFormBase::__construct

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/UserBulkForm.php, line 26
Contains \Drupal\user\Plugin\views\field\UserBulkForm.

Class

UserBulkForm
Defines a user operations bulk form element.

Namespace

Drupal\user\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 'user' entity type.
  $this->actions = array_filter($this->actions, function ($action) {
    return $action
      ->getType() == 'user';
  });
}