function CommentDisplayConfigurableTestHooks::entityTypeBuild

Implements hook_entity_type_build().

Attributes

#[Hook('entity_type_build')]

File

core/modules/comment/tests/modules/comment_display_configurable_test/src/Hook/CommentDisplayConfigurableTestHooks.php, line 31

Class

CommentDisplayConfigurableTestHooks
Hook implementations for comment_display_configurable_test.

Namespace

Drupal\comment_display_configurable_test\Hook

Code

public function entityTypeBuild(array &$entity_types) : void {
  // Allow skipping of extra preprocessing for configurable display.
  $entity_types['comment']->set('enable_base_field_custom_preprocess_skipping', TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.