You are here

function taxonomy_access_fix_entity_type_alter in Taxonomy access fix 8

Same name and namespace in other branches
  1. 8.3 taxonomy_access_fix.module \taxonomy_access_fix_entity_type_alter()
  2. 8.2 taxonomy_access_fix.module \taxonomy_access_fix_entity_type_alter()

Implements hook_entity_type_alter().

File

./taxonomy_access_fix.module, line 13

Code

function taxonomy_access_fix_entity_type_alter(array &$entity_types) {
  $entity_types['taxonomy_vocabulary']
    ->setHandlerClass('list_builder', 'Drupal\\taxonomy_access_fix\\VocabularyListBuilder');
  $entity_types['taxonomy_term']
    ->setHandlerClass('access', TermAccessFixTermControlHandler::class);
}