You are here

function manage_display_entity_base_field_info_alter in Manage display 8

Implements hook_entity_base_field_info_alter().

File

./manage_display.module, line 49
Make base fields such as 'title' available in "Manage Display".

Code

function manage_display_entity_base_field_info_alter(&$base_field_definitions, EntityTypeInterface $entity_type) {
  $info = manage_display_base_field_info($entity_type
    ->id());
  foreach ($info as $field => $options) {
    $base_field_definitions[$field]
      ->setDisplayConfigurable('view', TRUE)
      ->setDisplayOptions('view', $options);
  }
}