public static function BlockFieldItem::settingsAjax in Block field 8
Ajax callback for the selection settings form.
See also
\Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem
File
- src/
Plugin/ Field/ FieldType/ BlockFieldItem.php, line 235
Class
- BlockFieldItem
- Plugin implementation of the 'block_field' field type.
Namespace
Drupal\block_field\Plugin\Field\FieldTypeCode
public static function settingsAjax($form, FormStateInterface $form_state) {
return NestedArray::getValue($form, $form_state
->getTriggeringElement()['#ajax']['element']);
}