function lightning_media_entity_base_field_info_alter in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 lightning_media.module \lightning_media_entity_base_field_info_alter()
Implements hook_entity_base_field_info_alter().
File
- ./
lightning_media.module, line 374 - Core media asset support for Lightning.
Code
function lightning_media_entity_base_field_info_alter(array &$fields, EntityTypeInterface $entity_type) {
if ($entity_type
->id() === 'media' && array_key_exists('revision_log_message', $fields)) {
$fields['revision_log_message']
->setDisplayConfigurable('form', TRUE);
}
}