You are here

public static function EmbedCode::update in Lightning Media 8.2

Submit callback for the Update button.

Parameters

array $form: The complete form.

\Drupal\Core\Form\FormStateInterface $form_state: The current form state.

File

src/Plugin/EntityBrowser/Widget/EmbedCode.php, line 61

Class

EmbedCode
An Entity Browser widget for creating media entities from embed codes.

Namespace

Drupal\lightning_media\Plugin\EntityBrowser\Widget

Code

public static function update(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRebuild();
}