protected function UserData::defineOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::defineOptions()
- 10 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::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 FieldPluginBase::defineOptions
File
- core/
modules/ user/ src/ Plugin/ views/ field/ UserData.php, line 57
Class
- UserData
- Provides access to the user data service.
Namespace
Drupal\user\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['data_module'] = [
'default' => '',
];
$options['data_name'] = [
'default' => '',
];
return $options;
}