public function SocialPostListBuilder::buildHeader in Social Post 3.x
Same name and namespace in other branches
- 8.2 src/Entity/Controller/SocialPostListBuilder.php \Drupal\social_post\Entity\Controller\SocialPostListBuilder::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/ Controller/ SocialPostListBuilder.php, line 89
Class
- SocialPostListBuilder
- Defines a class to build a listing of Social Post Entities.
Namespace
Drupal\social_post\Entity\ControllerCode
public function buildHeader() {
$header['social_id'] = $this
->t('Social Network ID');
$header['social_post_name'] = $this
->t('Screen name');
$header['user'] = $this
->t('User ID');
return $header + parent::buildHeader();
}