You are here

function taxonomy_term_display_configurable_test_entity_type_build in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/modules/taxonomy_term_display_configurable_test/taxonomy_term_display_configurable_test.module \taxonomy_term_display_configurable_test_entity_type_build()
  2. 9 core/modules/taxonomy/tests/modules/taxonomy_term_display_configurable_test/taxonomy_term_display_configurable_test.module \taxonomy_term_display_configurable_test_entity_type_build()

Implements hook_entity_type_build().

File

core/modules/taxonomy/tests/modules/taxonomy_term_display_configurable_test/taxonomy_term_display_configurable_test.module, line 24
A module for testing making taxonomy_term base fields' displays configurable.

Code

function taxonomy_term_display_configurable_test_entity_type_build(array &$entity_types) {

  // Allow skipping of extra preprocessing for configurable display.
  $entity_types['taxonomy_term']
    ->set('enable_base_field_custom_preprocess_skipping', TRUE);
}