You are here

public function SmartDateFormatListBuilder::buildHeader in Smart Date 8.2

Same name and namespace in other branches
  1. 8 src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::buildHeader()
  2. 3.x src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::buildHeader()
  3. 3.0.x src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::buildHeader()
  4. 3.1.x src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::buildHeader()
  5. 3.2.x src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::buildHeader()
  6. 3.3.x src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::buildHeader()
  7. 3.4.x src/Entity/SmartDateFormatListBuilder.php \Drupal\smart_date\Entity\SmartDateFormatListBuilder::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/Entity/SmartDateFormatListBuilder.php, line 19

Class

SmartDateFormatListBuilder
Defines a class to build a listing of Smart date formats.

Namespace

Drupal\smart_date\Entity

Code

public function buildHeader() {
  $header['name'] = $this
    ->t('Name');
  $header['date_format'] = $this
    ->t('Date Format');
  $header['time_format'] = $this
    ->t('Time Format');
  return $header + parent::buildHeader();
}