You are here

public function ColorListBuilder::buildHeader in Color API 8

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

src/Entity/Builder/ColorListBuilder.php, line 17

Class

ColorListBuilder
Provides a listing of Colors.

Namespace

Drupal\colorapi\Entity\Builder

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Color');
  $header['id'] = $this
    ->t('Machine name');
  $header['color'] = $this
    ->t('Color');
  $header['hexadecimal'] = $this
    ->t('Hexadecimal Value');
  $header['rgb'] = $this
    ->t('RGB Value');
  return $header + parent::buildHeader();
}