function UserRow::defineOptions

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

Overrides EntityRow::defineOptions

File

core/modules/user/src/Plugin/views/row/UserRow.php, line 19

Class

UserRow
A row plugin which renders a user.

Namespace

Drupal\user\Plugin\views\row

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['view_mode']['default'] = 'full';
    return $options;
}

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