You are here

public static function MediaLibrary::updateItem in Media Library Form API Element 2.x

Same name and namespace in other branches
  1. 8 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 463

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();
}