public function FlagListsFlagListBuilder::buildHeader in Flag Lists 4.0.x
File
- src/
FlagListsFlagListBuilder.php, line 78
Class
- FlagListsFlagListBuilder
- Defines a class to build an enhanced listing of Flag entities.
Namespace
Drupal\flag_listsCode
public function buildHeader() {
$total = parent::buildHeader();
$header['flagListUsage'] = $this
->t('Flag Lists Usage');
$header['creator'] = $this
->t('Creator');
$first_array = array_splice($total, 0, 5);
$total = array_merge($first_array, $header, $total);
return $total;
}