public function MaestroEngineEntityIdentifierEntityLabel::buildOptionsForm in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Plugin/views/field/MaestroEngineEntityIdentifierEntityLabel.php \Drupal\maestro\Plugin\views\field\MaestroEngineEntityIdentifierEntityLabel::buildOptionsForm()
Provide the options form.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ MaestroEngineEntityIdentifierEntityLabel.php, line 40
Class
- MaestroEngineEntityIdentifierEntityLabel
- Field handler to display the entity label for the entity POINTED TO from the entity identifiers .
Namespace
Drupal\maestro\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['link_to_entity'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Provide a link to the entity?'),
'#description' => $this
->t('When checked, the output in the view will show a link to the entity.'),
'#default_value' => isset($this->options['link_to_entity']) ? $this->options['link_to_entity'] : 0,
];
parent::buildOptionsForm($form, $form_state);
}