function tca_entity_base_field_info in Token Content Access 2.0.x
Same name and namespace in other branches
- 8 tca.module \tca_entity_base_field_info()
Implements hook_entity_base_field_info().
File
- ./
tca.module, line 122 - Contains tca.module.
Code
function tca_entity_base_field_info(EntityTypeInterface $entity_type) {
$plugin = \Drupal::service('plugin.manager.tca_plugin')
->createInstanceByEntityType($entity_type
->id());
if ($plugin && $plugin
->isFieldable()) {
$fields = _tca_extra_field_definitions();
return $fields;
}
}