You are here

public static function QueryAccessSubscriber::getSubscribedEvents in Entity API 8

File

tests/modules/entity_module_test/src/EventSubscriber/QueryAccessSubscriber.php, line 15

Class

QueryAccessSubscriber

Namespace

Drupal\entity_module_test\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    'entity.query_access' => 'onGenericQueryAccess',
    'entity.query_access.entity_test_enhanced' => 'onQueryAccess',
    'entity.query_access.node' => 'onEventOnlyQueryAccess',
  ];
}