Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function validateConfigurationForm(array $form, FormStateInterface $form_state, FacetInterface $facet)
 {
     $values = $form_state->getValues();
     if (!empty($values['maximum_items']) && !empty($values['minimum_items']) && $values['maximum_items'] <= $values['minimum_items']) {
         $form_state->setErrorByName('maximum_items', t('If both minimum and maximum item count are specified, the maximum item count should be higher than the minimum item count.'));
     }
     return parent::validateConfigurationForm($form, $form_state, $facet);
 }