public function MaestroEngineActiveAssignments::buildOptionsForm in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/views/field/MaestroEngineActiveAssignments.php \Drupal\maestro\Plugin\views\field\MaestroEngineActiveAssignments::buildOptionsForm()
Provide the options form.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ MaestroEngineActiveAssignments.php, line 43
Class
- MaestroEngineActiveAssignments
- Field handler to generate a list of assigned users/roles etc.
Namespace
Drupal\maestro\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['show_how_assigned'] = [
'#title' => $this
->t('When checked, this will add a suffix of :Fixed or :Variable to the assigned entity name.'),
'#type' => 'checkbox',
'#default_value' => isset($this->options['show_how_assigned']) ? $this->options['show_how_assigned'] : 0,
];
$form['separator_text'] = [
'#title' => $this
->t('Text used for separating multiple values. HTML allowed.'),
'#type' => 'textfield',
'#default_value' => isset($this->options['separator_text']) ? $this->options['separator_text'] : ',',
];
parent::buildOptionsForm($form, $form_state);
}