You are here

public static function MediaLibrary::updateItem in Media Library Form API Element 8

Same name and namespace in other branches
  1. 2.x src/Element/MediaLibrary.php \Drupal\media_library_form_element\Element\MediaLibrary::updateItem()

Flags the form for rebuild.

Parameters

array $form: The form array.

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

File

src/Element/MediaLibrary.php, line 461

Class

MediaLibrary
Provides a Media library form element.

Namespace

Drupal\media_library_form_element\Element

Code

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