You are here

public function ViewsBulkOperationsCommands::__construct in Views Bulk Operations (VBO) 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Commands/ViewsBulkOperationsCommands.php \Drupal\views_bulk_operations\Commands\ViewsBulkOperationsCommands::__construct()
  2. 8.2 src/Commands/ViewsBulkOperationsCommands.php \Drupal\views_bulk_operations\Commands\ViewsBulkOperationsCommands::__construct()

ViewsBulkOperationsCommands object constructor.

Parameters

\Drupal\Core\Session\AccountInterface $currentUser: The current user object.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\views_bulk_operations\Service\ViewsbulkOperationsViewDataInterface $viewData: VBO View data service.

\Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager $actionManager: VBO Action manager service.

File

src/Commands/ViewsBulkOperationsCommands.php, line 58

Class

ViewsBulkOperationsCommands
Defines Drush commands for the module.

Namespace

Drupal\views_bulk_operations\Commands

Code

public function __construct(AccountInterface $currentUser, EntityTypeManagerInterface $entityTypeManager, ViewsbulkOperationsViewDataInterface $viewData, ViewsBulkOperationsActionManager $actionManager) {
  $this->currentUser = $currentUser;
  $this->userStorage = $entityTypeManager
    ->getStorage('user');
  $this->viewData = $viewData;
  $this->actionManager = $actionManager;
}