Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function validateOptionsForm(&$form, FormStateInterface $form_state)
 {
     $errors = parent::validateOptionsForm($form, $form_state);
     if ($this->view->usePager()) {
         $errors[] = t('The jCarousel style cannot be used with a pager. Disable the "Use pager" option for this display.');
     }
     return $errors;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function validateOptionsForm(&$form, &$form_state)
 {
     parent::validateOptionsForm($form, $form_state);
     // Cast all submitted values to their proper type.
     if (!empty($form_state['values']['style_options']) && is_array($form_state['values']['style_options'])) {
         $this->castNestedValues($form_state['values']['style_options'], $form);
     }
 }