public function BUEditor::validateConfigurationForm in BUEditor 8.2
Form validation handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides EditorBase::validateConfigurationForm
File
- src/
Plugin/ Editor/ BUEditor.php, line 89
Class
- BUEditor
- Defines BUEditor as an Editor plugin.
Namespace
Drupal\bueditor\Plugin\EditorCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
$settings =& $form_state
->getValues();
// Remove empty role editor pairs.
if (isset($settings['roles_editors'])) {
$settings['roles_editors'] = array_filter($settings['roles_editors']);
}
}