You are here

public function MapStyle::validateConfigurationForm in Openlayers 8.4

File

src/MapStyle.php, line 135

Class

MapStyle
Contains details of how a style is joined to a map.

Namespace

Drupal\openlayers

Code

public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {

  /*
      if (!$form_state->isValueEmpty('bgcolor') && !Color::validateHex($form_state->getValue('bgcolor'))) {
        $form_state->setErrorByName('bgcolor', $this->t('Background color must be a hexadecimal color value.'));
      }
  */
}