public function UserListBuilder::buildHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/UserListBuilder.php \Drupal\user\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()
1 call to UserListBuilder::buildHeader()
- UserListBuilder::load in core/
modules/ user/ src/ UserListBuilder.php - Loads entities of this type from storage for listing.
File
- core/
modules/ user/ src/ UserListBuilder.php, line 97 - Contains \Drupal\user\UserListBuilder.
Class
- UserListBuilder
- Defines a class to build a listing of user entities.
Namespace
Drupal\userCode
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();
}