You are here

public function BatchUserAction::execute in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/modules/user_batch_action_test/src/Plugin/Action/BatchUserAction.php \Drupal\user_batch_action_test\Plugin\Action\BatchUserAction::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

File

core/modules/views/tests/modules/user_batch_action_test/src/Plugin/Action/BatchUserAction.php, line 50

Class

BatchUserAction
Provides action that sets batch precessing.

Namespace

Drupal\user_batch_action_test\Plugin\Action

Code

public function execute(ContentEntityInterface $entity = NULL) {
  $this
    ->executeMultiple([
    $entity,
  ]);
}