You are here

function title_entity_base_field_info_alter in Title 8.2

Implements hook_entity_base_field_info_alter().

File

./title.module, line 64
Convert titles into fields which can be display manipulated.

Code

function title_entity_base_field_info_alter(&$base_field_definitions, EntityTypeInterface $entity_type) {

  // For all nodes, make the title display configurable. This is not possible
  // on a per bundle basis, so it must be done for all nodes and then controlled
  // individually on a bundle level.
  if ($entity_type
    ->id() == 'node') {
    $base_field_definitions['title']
      ->setDisplayConfigurable('view', TRUE);
  }
}