You are here

public function ViewsBulkOperationsViewData::__construct in Views Bulk Operations (VBO) 8

Same name and namespace in other branches
  1. 8.3 src/Service/ViewsBulkOperationsViewData.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::__construct()
  2. 8.2 src/Service/ViewsBulkOperationsViewData.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::__construct()
  3. 4.0.x src/Service/ViewsBulkOperationsViewData.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::__construct()

Object constructor.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Module handler service.

File

src/Service/ViewsBulkOperationsViewData.php, line 76

Class

ViewsBulkOperationsViewData
Gets Views data needed by VBO.

Namespace

Drupal\views_bulk_operations\Service

Code

public function __construct(EventDispatcherInterface $eventDispatcher, ModuleHandlerInterface $moduleHandler) {
  $this->eventDispatcher = $eventDispatcher;
  $this->moduleHandler = $moduleHandler;
}