You are here

public function FieldInheritanceListBuilder::buildHeader in Field Inheritance 8

Same name and namespace in other branches
  1. 2.0.x src/FieldInheritanceListBuilder.php \Drupal\field_inheritance\FieldInheritanceListBuilder::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

src/FieldInheritanceListBuilder.php, line 16

Class

FieldInheritanceListBuilder
Provides a listing of Field inheritance entities.

Namespace

Drupal\field_inheritance

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Field inheritance');
  $header['id'] = $this
    ->t('Machine name');
  $header['type'] = $this
    ->t('Type');
  $header['source_entity'] = $this
    ->t('Source Entity/Bundle');
  $header['source_field'] = $this
    ->t('Source Field');
  $header['destination_entity'] = $this
    ->t('Destination Entity/Bundle');
  $header['destination_field'] = $this
    ->t('Destination Field');
  return $header + parent::buildHeader();
}