function LanguageListBuilder::buildHeader

Same name in other branches
  1. 9 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildHeader()
  2. 8.9.x core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildHeader()
  3. 10 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildHeader()

Overrides DraggableListBuilderTrait::buildHeader

File

core/modules/language/src/LanguageListBuilder.php, line 104

Class

LanguageListBuilder
Defines a class to build a listing of language entities.

Namespace

Drupal\language

Code

public function buildHeader() {
    $header = [
        'label' => $this->t('Name'),
        'default' => $this->t('Default'),
    ] + parent::buildHeader();
    return $header;
}

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