public function HierarchyIsSiblingOfEntity::buildOptionsForm in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/views/argument/HierarchyIsSiblingOfEntity.php \Drupal\entity_hierarchy\Plugin\views\argument\HierarchyIsSiblingOfEntity::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides EntityHierarchyArgumentPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ argument/ HierarchyIsSiblingOfEntity.php, line 59
Class
- HierarchyIsSiblingOfEntity
- Argument to limit to parent of an entity.
Namespace
Drupal\entity_hierarchy\Plugin\views\argumentCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['show_self'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Show self'),
'#default_value' => $this->options['show_self'],
'#description' => $this
->t('Filter out the current child from the list of siblings.'),
];
parent::buildOptionsForm($form, $form_state);
unset($form['depth']);
}