UserRow.php

Same filename and directory in other branches
  1. 9 core/modules/user/src/Plugin/views/row/UserRow.php
  2. 8.9.x core/modules/user/src/Plugin/views/row/UserRow.php
  3. 10 core/modules/user/src/Plugin/views/row/UserRow.php

Namespace

Drupal\user\Plugin\views\row

File

core/modules/user/src/Plugin/views/row/UserRow.php

View source
<?php

namespace Drupal\user\Plugin\views\row;

use Drupal\views\Attribute\ViewsRow;
use Drupal\views\Plugin\views\row\EntityRow;

/**
 * A row plugin which renders a user.
 *
 * @ingroup views_row_plugins
 */
class UserRow extends EntityRow {
    
    /**
     * {@inheritdoc}
     */
    protected function defineOptions() {
        $options = parent::defineOptions();
        $options['view_mode']['default'] = 'full';
        return $options;
    }

}

Classes

Title Deprecated Summary
UserRow A row plugin which renders a user.

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