public function RelationshipPluginBase::buildOptionsForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php \Drupal\views\Plugin\views\relationship\RelationshipPluginBase::buildOptionsForm()
- 9 core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php \Drupal\views\Plugin\views\relationship\RelationshipPluginBase::buildOptionsForm()
1 call to RelationshipPluginBase::buildOptionsForm()
- NodeTermData::buildOptionsForm in core/
modules/ taxonomy/ src/ Plugin/ views/ relationship/ NodeTermData.php
1 method overrides RelationshipPluginBase::buildOptionsForm()
- NodeTermData::buildOptionsForm in core/
modules/ taxonomy/ src/ Plugin/ views/ relationship/ NodeTermData.php
File
- core/
modules/ views/ src/ Plugin/ views/ relationship/ RelationshipPluginBase.php, line 110
Class
- RelationshipPluginBase
- Simple relationship handler that allows a new version of the primary table to be linked in.
Namespace
Drupal\views\Plugin\views\relationshipCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
unset($form['admin_label']['#fieldset']);
$form['admin_label']['#weight'] = -1;
$form['required'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Require this relationship'),
'#description' => $this
->t('Enable to hide items that do not contain this relationship'),
'#default_value' => !empty($this->options['required']),
];
}