You are here

public function HierarchyIsParentOfEntity::buildOptionsForm in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/argument/HierarchyIsParentOfEntity.php \Drupal\entity_hierarchy\Plugin\views\argument\HierarchyIsParentOfEntity::buildOptionsForm()

Provide a form to edit options for this plugin.

Overrides EntityHierarchyArgumentPluginBase::buildOptionsForm

File

src/Plugin/views/argument/HierarchyIsParentOfEntity.php, line 54

Class

HierarchyIsParentOfEntity
Argument to limit to parent of an entity.

Namespace

Drupal\entity_hierarchy\Plugin\views\argument

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['depth']['#description'] = $this
    ->t('Filter to parent that are at most this many levels higher than their parent. E.g. for immediate parent, select 1.');
}