public function RoleListController::buildHeader

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListController::buildHeader

See also

Drupal\Core\Entity\EntityListController::render()

1 call to RoleListController::buildHeader()
RoleListController::buildForm in drupal/core/modules/user/lib/Drupal/user/RoleListController.php
Form constructor.

File

drupal/core/modules/user/lib/Drupal/user/RoleListController.php, line 29
Contains \Drupal\user\RoleListController.

Class

RoleListController
Provides a listing of user roles.

Namespace

Drupal\user

Code

public function buildHeader() {
  $row = parent::buildHeader();
  $row['label'] = t('Name');
  unset($row['id']);
  $row['weight'] = t('Weight');
  return $row;
}