function public static function SettingBase::validateForm
8.x-3.x SettingBase.php | public static SettingBase::validateForm(array &$form, FormStateInterface $form_state) |
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::validateForm
Class
- SettingBase
- Base class for a setting.
Namespace
Drupal\bootstrap\Plugin\SettingSource src/Plugin/Setting/SettingBase.php (line 271)
public static function validateForm(array &$form, FormStateInterface $form_state) {
static::validateFormElement(Element::create($form, $form_state), $form_state);
}