function tvi_entity_extra_field_info in Taxonomy Views Integrator 8
Implements hook_entity_extra_field_info().
File
- ./
tvi.module, line 16 - Allow views to be used instead of default taxonomy term page behavior.
Code
function tvi_entity_extra_field_info() {
$extra = [];
/** @var \Drupal\Core\Entity\EntityInterface $bundle */
foreach (Vocabulary::loadMultiple() as $bundle) {
$extra['taxonomy_term'][$bundle
->id()]['form']['tvi'] = [
'label' => t('TVI settings'),
'description' => t('Show TVI settings'),
'weight' => 100,
];
}
return $extra;
}