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
1 2 3 4 5 | 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 ); } |
Please login to continue.