function UserData::defineOptions

Same name in other branches
  1. 9 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::defineOptions()
  2. 8.9.x core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::defineOptions()
  3. 11.x core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::defineOptions()

Overrides FieldPluginBase::defineOptions

File

core/modules/user/src/Plugin/views/field/UserData.php, line 69

Class

UserData
Provides access to the user data service.

Namespace

Drupal\user\Plugin\views\field

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['data_module'] = [
        'default' => '',
    ];
    $options['data_name'] = [
        'default' => '',
    ];
    return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.