You are here

public static function FieldBlock::blockFormChangeFieldOrFormatter in Field as Block 8.2

Element submit handler for non-JS field/formatter changes.

Parameters

array $form: The form.

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

File

src/Plugin/Block/FieldBlock.php, line 316

Class

FieldBlock
Provides a fieldblock.

Namespace

Drupal\fieldblock\Plugin\Block

Code

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