You are here

function lightning_media_form_alter in Lightning Media 8

Same name and namespace in other branches
  1. 8.2 lightning_media.module \lightning_media_form_alter()

Implements hook_form_FORM_ID_alter().

File

./lightning_media.module, line 375
Core media asset support for Lightning.

Code

function lightning_media_form_alter(array &$form, FormStateInterface $form_state) {
  if ($form_state
    ->has('entity_browser')) {
    $form['#attached']['library'][] = 'lightning_media/browser.styling';
  }
}