class UserRow

Same name and namespace in other branches
  1. 11.x core/modules/user/src/Plugin/views/row/UserRow.php \Drupal\user\Plugin\views\row\UserRow
  2. 10 core/modules/user/src/Plugin/views/row/UserRow.php \Drupal\user\Plugin\views\row\UserRow
  3. 8.9.x core/modules/user/src/Plugin/views/row/UserRow.php \Drupal\user\Plugin\views\row\UserRow

A row plugin which renders a user.

Plugin annotation


@ViewsRow(
  id = "entity:user",
)

Hierarchy

Expanded class hierarchy of UserRow

Related topics

File

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

Namespace

Drupal\user\Plugin\views\row
View source
class UserRow extends EntityRow {
  
  /**
   * {@inheritdoc}
   */
  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.