protected function GroupPermission::defineOptions in Group 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/access/GroupPermission.php \Drupal\group\Plugin\views\access\GroupPermission::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 PluginBase::defineOptions
File
- src/
Plugin/ views/ access/ GroupPermission.php, line 138
Class
- GroupPermission
- Access plugin that provides group permission-based access control.
Namespace
Drupal\group\Plugin\views\accessCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['group_permission'] = [
'default' => 'view group',
];
return $options;
}