You are here

public function FieldBlock::blockFormChangeFieldOrFormatterAjax in Field as Block 8.2

Ajax callback on changing field_name or formatter_id form element.

Parameters

array $form: The form.

Return value

array The part of the form that has changed.

File

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

Class

FieldBlock
Provides a fieldblock.

Namespace

Drupal\fieldblock\Plugin\Block

Code

public function blockFormChangeFieldOrFormatterAjax(array $form) {
  return $form['settings']['formatter'];
}