function organigrams_entity_type_alter in Organigrams 8.2
Same name and namespace in other branches
- 8 organigrams.module \organigrams_entity_type_alter()
Implements hook_entity_type_alter().
Add our own class to the vocabulary overview to highlight organigrams.
File
- ./
organigrams.module, line 191 - Extends Taxonomy to create organigrams.
Code
function organigrams_entity_type_alter(array &$entity_types) {
if (isset($entity_types['taxonomy_vocabulary']) && is_object($entity_types['taxonomy_vocabulary'])) {
$entity_types['taxonomy_vocabulary']
->setListBuilderClass('Drupal\\organigrams\\OrganigramsListBuilder');
}
}