public function StylesCombo::validateStylesValue

#element_validate handler for the "styles" element in settingsForm().

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php, line 94
Contains \Drupal\ckeditor\Plugin\CKEditorPlugin\StylesCombo.

Class

StylesCombo
Defines the "stylescombo" plugin.

Namespace

Drupal\ckeditor\Plugin\CKEditorPlugin

Code

public function validateStylesValue(array $element, array &$form_state) {
  if ($this
    ->generateStylesSetSetting($element['#value']) === FALSE) {
    form_error($element, t('The provided list of styles is syntactically incorrect.'));
  }
}