public function Full::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/pager/Full.php \Drupal\views\Plugin\views\pager\Full::buildOptionsForm()
Provide the default form for setting options.
Overrides SqlBase::buildOptionsForm
File
- core/
modules/ views/ src/ Plugin/ views/ pager/ Full.php, line 46 - Contains \Drupal\views\Plugin\views\pager\Full.
Class
- Full
- The plugin to handle full pager.
Namespace
Drupal\views\Plugin\views\pagerCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['quantity'] = array(
'#type' => 'number',
'#title' => $this
->t('Number of pager links visible'),
'#description' => $this
->t('Specify the number of links to pages to display in the pager.'),
'#default_value' => $this->options['quantity'],
);
$form['tags']['first'] = array(
'#type' => 'textfield',
'#title' => $this
->t('First page link text'),
'#default_value' => $this->options['tags']['first'],
'#weight' => -10,
);
$form['tags']['last'] = array(
'#type' => 'textfield',
'#title' => $this
->t('Last page link text'),
'#default_value' => $this->options['tags']['last'],
'#weight' => 10,
);
}