content_moderation_entity_bundle_field_info_alter

content_moderation_entity_bundle_field_info_alter(&$fields, EntityTypeInterface $entity_type, $bundle)

Sets required flag based on enabled state.

File

core/modules/content_moderation/content_moderation.module, line 78
Contains content_moderation.module.

Code

function content_moderation_entity_bundle_field_info_alter(&$fields, EntityTypeInterface $entity_type, $bundle) {
  \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityTypeInfo::class)
    ->entityBundleFieldInfoAlter($fields, $entity_type, $bundle);
}
doc_Drupal
2016-10-29 08:58:32
Comments
Leave a Comment

Please login to continue.