public function LtiToolProviderConsumerListBuilder::buildHeader in LTI Tool Provider 2.x
Same name and namespace in other branches
- 8 src/LtiToolProviderConsumerListBuilder.php \Drupal\lti_tool_provider\LtiToolProviderConsumerListBuilder::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/
LtiToolProviderConsumerListBuilder.php, line 17
Class
Namespace
Drupal\lti_tool_providerCode
public function buildHeader() : array {
$header = [
'id' => [
'data' => $this
->t('ID'),
'field' => 'id',
'specifier' => 'id',
],
'consumer' => [
'data' => $this
->t('Label'),
'field' => 'consumer',
'specifier' => 'consumer',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'consumer_key' => [
'data' => $this
->t('Consumer Key'),
'field' => 'consumer_key',
'specifier' => 'consumer_key',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'consumer_secret' => [
'data' => $this
->t('Consumer Secret'),
'field' => 'consumer_secret',
'specifier' => 'consumer_secret',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'created' => [
'data' => $this
->t('Created'),
'field' => 'created',
'specifier' => 'created',
'sort' => 'desc',
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
];
return $header + parent::buildHeader();
}