protected function EntityHierarchyArgumentPluginBase::defineOptions in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x src/Plugin/views/argument/EntityHierarchyArgumentPluginBase.php \Drupal\entity_hierarchy\Plugin\views\argument\EntityHierarchyArgumentPluginBase::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 ArgumentPluginBase::defineOptions
1 call to EntityHierarchyArgumentPluginBase::defineOptions()
- HierarchyIsSiblingOfEntity::defineOptions in src/
Plugin/ views/ argument/ HierarchyIsSiblingOfEntity.php - Information about options for all kinds of purposes will be held here.
1 method overrides EntityHierarchyArgumentPluginBase::defineOptions()
- HierarchyIsSiblingOfEntity::defineOptions in src/
Plugin/ views/ argument/ HierarchyIsSiblingOfEntity.php - Information about options for all kinds of purposes will be held here.
File
- src/
Plugin/ views/ argument/ EntityHierarchyArgumentPluginBase.php, line 116
Class
- EntityHierarchyArgumentPluginBase
- Defines a base argument plugin.
Namespace
Drupal\entity_hierarchy\Plugin\views\argumentCode
protected function defineOptions() {
$options = parent::defineOptions();
// Allow filtering depth as well.
$options['depth'] = [
'default' => 0,
];
return $options;
}