function Full::exposed_form_validate in Views (for Drupal 7) 8.3
Overrides PagerPluginBase::exposed_form_validate
File
- lib/
Drupal/ views/ Plugin/ views/ pager/ Full.php, line 435 - Definition of Drupal\views\Plugin\views\pager\Full.
Class
- Full
- The plugin to handle full pager.
Namespace
Drupal\views\Plugin\views\pagerCode
function exposed_form_validate(&$form, &$form_state) {
if (!empty($form_state['values']['offset']) && trim($form_state['values']['offset'])) {
if (!is_numeric($form_state['values']['offset']) || $form_state['values']['offset'] < 0) {
form_set_error('offset', t('Offset must be an number greather or equal than 0.'));
}
}
}