function media_library_form_filter_format_edit_form_alter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media_library/media_library.module \media_library_form_filter_format_edit_form_alter()
Implements hook_form_FORM_ID_alter().
File
- core/
modules/ media_library/ media_library.module, line 483 - Contains hook implementations for the media_library module.
Code
function media_library_form_filter_format_edit_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
// Add an additional validate callback so so we can ensure the media_embed
// filter is enabled when the DrupalMediaLibrary button is enabled.
$form['#validate'][] = 'media_library_filter_format_edit_form_validate';
}