public function Counter::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/field/Counter.php \Drupal\views\Plugin\views\field\Counter::buildOptionsForm()
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- core/
modules/ views/ src/ Plugin/ views/ field/ Counter.php, line 43 - Contains \Drupal\views\Plugin\views\field\Counter.
Class
- Counter
- Field handler to show a counter of the current row.
Namespace
Drupal\views\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['counter_start'] = array(
'#type' => 'textfield',
'#title' => $this
->t('Starting value'),
'#default_value' => $this->options['counter_start'],
'#description' => $this
->t('Specify the number the counter should start at.'),
'#size' => 2,
);
parent::buildOptionsForm($form, $form_state);
}