You are here

function openlayers_component_form_options_validate in Openlayers 7.3

Component options form validation handler.

File

modules/openlayers_ui/src/Plugin/export_ui/OpenlayersComponents.inc, line 155
CTools Export UI plugin definition for components.

Code

function openlayers_component_form_options_validate($form, &$form_state) {
  if (($component = \Drupal\openlayers\Openlayers::load('Component', $form_state['item'])) == TRUE) {
    $component
      ->optionsFormValidate($form, $form_state);
  }
}