You are here

function thunder_taxonomy_entity_base_field_info_alter in Thunder 8.3

Same name and namespace in other branches
  1. 8.2 modules/thunder_taxonomy/thunder_taxonomy.module \thunder_taxonomy_entity_base_field_info_alter()

Implements hook_entity_base_field_info_alter().

File

modules/thunder_taxonomy/thunder_taxonomy.module, line 14
Module for adding custom Infinity base functions.

Code

function thunder_taxonomy_entity_base_field_info_alter(&$fields, EntityTypeInterface $entity_type) {
  if ($entity_type
    ->id() == 'taxonomy_term') {
    $fields['status']
      ->setDisplayOptions('form', [
      'type' => 'boolean_checkbox',
      'settings' => [
        'display_label' => TRUE,
      ],
      'weight' => 120,
    ])
      ->setDisplayConfigurable('form', TRUE);
  }
}