public function WorkflowTransitionListBuilder::buildHeader in Workflow 8
Building the header and content lines for the contact list.
Calling the parent::buildHeader() adds a column for the possible actions and inserts the 'edit' and 'delete' links as defined for the entity type.
Overrides EntityListBuilder::buildHeader
File
- src/
WorkflowTransitionListBuilder.php, line 73
Class
- WorkflowTransitionListBuilder
- Defines a class to build a draggable listing of Workflow State entities.
Namespace
Drupal\workflowCode
public function buildHeader() {
$entity = $this->workflow_entity;
// N.B. This is a custom variable.
$header['timestamp'] = $this
->t('Date');
if ($this
->showColumnFieldname($entity)) {
$header['field_name'] = $this
->t('Field name');
}
$header['from_state'] = $this
->t('From State');
$header['to_state'] = $this
->t('To State');
$header['user_name'] = $this
->t('By');
$header['comment'] = $this
->t('Comment');
return $header + parent::buildHeader();
}