function content_moderation_entity_base_field_info

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/content_moderation.module \content_moderation_entity_base_field_info()
  2. 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_base_field_info()
  3. 10 core/modules/content_moderation/content_moderation.module \content_moderation_entity_base_field_info()

Implements hook_entity_base_field_info().

File

core/modules/content_moderation/content_moderation.module, line 65

Code

function content_moderation_entity_base_field_info(EntityTypeInterface $entity_type) {
    return \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityTypeInfo::class)
        ->entityBaseFieldInfo($entity_type);
}

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