protected function RoleBasedGlobalText::defineOptions in Views Role Based Global Text 8
Same name and namespace in other branches
- 8.2 src/RoleBasedGlobalText.php \Drupal\views_role_based_global_text\RoleBasedGlobalText::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 Text::defineOptions
File
- src/
RoleBasedGlobalText.php, line 16
Class
- RoleBasedGlobalText
- Class RoleBasedGlobalText.
Namespace
Drupal\views_role_based_global_textCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['roles_fieldset']['default'] = FALSE;
return $options;
}