function FormHooks::formMediaFormAlter
Same name and namespace in other branches
- main core/themes/admin/src/Hook/FormHooks.php \Drupal\admin\Hook\FormHooks::formMediaFormAlter()
Implements hook_form_BASE_FORM_ID_alter() for \Drupal\media\MediaForm.
Attributes
#[Hook('form_media_form_alter')]
File
-
core/
themes/ admin/ src/ Hook/ FormHooks.php, line 187
Class
- FormHooks
- Provides form related hook implementations.
Namespace
Drupal\admin\HookCode
public function formMediaFormAlter(array &$form, FormStateInterface $form_state) : void {
$form['#attached']['library'][] = 'admin/media-form';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.