public static function BlockFieldItem::fieldSettingsFormValidate in Block field 8
Form element validation handler; Invokes selection plugin's validation.
Parameters
array $form: The form where the settings form is being included in.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the (entire) configuration form.
File
- src/
Plugin/ Field/ FieldType/ BlockFieldItem.php, line 271
Class
- BlockFieldItem
- Plugin implementation of the 'block_field' field type.
Namespace
Drupal\block_field\Plugin\Field\FieldTypeCode
public static function fieldSettingsFormValidate(array $form, FormStateInterface $form_state) {
$field = $form_state
->getFormObject()
->getEntity();
$handler = \Drupal::service('plugin.manager.block_field_selection')
->getSelectionHandler($field);
$handler
->validateConfigurationForm($form, $form_state);
}