public function ViewsBulkOperationsEvent::setEntityGetter in Views Bulk Operations (VBO) 4.0.x
Same name and namespace in other branches
- 8.3 src/ViewsBulkOperationsEvent.php \Drupal\views_bulk_operations\ViewsBulkOperationsEvent::setEntityGetter()
- 8 src/ViewsBulkOperationsEvent.php \Drupal\views_bulk_operations\ViewsBulkOperationsEvent::setEntityGetter()
- 8.2 src/ViewsBulkOperationsEvent.php \Drupal\views_bulk_operations\ViewsBulkOperationsEvent::setEntityGetter()
Set entity getter callable.
Parameters
array $entityGetter: Entity getter information.
File
- src/
ViewsBulkOperationsEvent.php, line 132
Class
- ViewsBulkOperationsEvent
- Defines Views Bulk Operations event type.
Namespace
Drupal\views_bulk_operationsCode
public function setEntityGetter(array $entityGetter) {
if (!isset($entityGetter['callable'])) {
throw new \Exception('Views Bulk Operations entity getter callable is not defined.');
}
$this->entityGetter = $entityGetter;
}