コード例 #1
0
ファイル: jcarousel.php プロジェクト: andypost/jcaurucel
 /**
  * {@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;
 }
コード例 #2
0
ファイル: FullCalendar.php プロジェクト: anatalsceo/en-classe
 /**
  * {@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);
     }
 }