public function JobState::buildOptionsForm in Advanced Queue 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ JobState.php, line 32
Class
- JobState
- Field handler to render the job state.
Namespace
Drupal\advancedqueue\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['icon'] = [
'#title' => $this
->t('Use an icon'),
'#type' => 'checkbox',
'#default_value' => $this->options['icon'],
];
return $form;
}