public UserListBuilder::buildHeader()
Builds the header row for the entity listing.
Return value
array A render array structure of header strings.
Overrides EntityListBuilder::buildHeader
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- core/modules/user/src/UserListBuilder.php, line 93
Class
- UserListBuilder
- Defines a class to build a listing of user entities.
Namespace
Drupal\user
Code
public function buildHeader() { $header = array( 'username' => array( 'data' => $this->t('Username'), 'field' => 'name', 'specifier' => 'name', ), 'status' => array( 'data' => $this->t('Status'), 'field' => 'status', 'specifier' => 'status', 'class' => array(RESPONSIVE_PRIORITY_LOW), ), 'roles' => array( 'data' => $this->t('Roles'), 'class' => array(RESPONSIVE_PRIORITY_LOW), ), 'member_for' => array( 'data' => $this->t('Member for'), 'field' => 'created', 'specifier' => 'created', 'sort' => 'desc', 'class' => array(RESPONSIVE_PRIORITY_LOW), ), 'access' => array( 'data' => $this->t('Last access'), 'field' => 'access', 'specifier' => 'access', 'class' => array(RESPONSIVE_PRIORITY_LOW), ), ); return $header + parent::buildHeader(); }
Please login to continue.