You are here

protected function HierarchyIsSiblingOfEntity::defineOptions in Entity Reference Hierarchy 3.x

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

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides EntityHierarchyArgumentPluginBase::defineOptions

File

src/Plugin/views/argument/HierarchyIsSiblingOfEntity.php, line 73

Class

HierarchyIsSiblingOfEntity
Argument to limit to parent of an entity.

Namespace

Drupal\entity_hierarchy\Plugin\views\argument

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  unset($options['depth']);
  $options['show_self'] = [
    'default' => FALSE,
  ];
  return $options;
}