public function MachineName::buildOptionsForm in Views (for Drupal 7) 8.3
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- lib/
Drupal/ views/ Plugin/ views/ field/ MachineName.php, line 56 - Definition of Drupal\views\Plugin\views\field\MachineName.
Class
- MachineName
- Field handler whichs allows to show machine name content as human name.
Namespace
Drupal\views\Plugin\views\fieldCode
public function buildOptionsForm(&$form, &$form_state) {
parent::buildOptionsForm($form, $form_state);
$form['machine_name'] = array(
'#title' => t('Output machine name'),
'#description' => t('Display field as machine name.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['machine_name']),
);
}