You are here

public function ViewsBulkOperationsCommands::__construct in Views Bulk Operations (VBO) 8.3

Same name and namespace in other branches
  1. 8.2 src/Commands/ViewsBulkOperationsCommands.php \Drupal\views_bulk_operations\Commands\ViewsBulkOperationsCommands::__construct()
  2. 4.0.x 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\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 49

Class

ViewsBulkOperationsCommands
Defines Drush commands for the module.

Namespace

Drupal\views_bulk_operations\Commands

Code

public function __construct(AccountInterface $currentUser, ViewsbulkOperationsViewDataInterface $viewData, ViewsBulkOperationsActionManager $actionManager) {
  $this->currentUser = $currentUser;
  $this->viewData = $viewData;
  $this->actionManager = $actionManager;
}