public function Subdivision::buildOptionsForm in Address 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ Subdivision.php, line 71
Class
- Subdivision
- Displays the subdivision.
Namespace
Drupal\address\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['display_name'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Display the subdivision name instead of the subdivision code'),
'#default_value' => !empty($this->options['display_name']),
];
parent::buildOptionsForm($form, $form_state);
}