You are here

public function WebhookConfigListBuilder::buildHeader in Webhooks 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/WebhookConfigListBuilder.php, line 36

Class

WebhookConfigListBuilder
Provides a listing of Webhook entities.

Namespace

Drupal\webhooks

Code

public function buildHeader() {
  return [
    'label' => $this
      ->t('Webhook'),
    'url' => $this
      ->t('URL'),
    'id' => $this
      ->t('Machine name'),
    'type' => $this
      ->t('Type'),
    'status' => $this
      ->t('Status'),
  ] + parent::buildHeader();
}