protected function WorkflowTransitionListBuilder::showColumnFieldname in Workflow 8
Determines if the column 'Field name' must be shown.
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
Return value
bool
2 calls to WorkflowTransitionListBuilder::showColumnFieldname()
- WorkflowTransitionListBuilder::buildHeader in src/
WorkflowTransitionListBuilder.php - Building the header and content lines for the contact list.
- WorkflowTransitionListBuilder::buildRow in src/
WorkflowTransitionListBuilder.php - Builds a row for an entity in the entity listing.
File
- src/
WorkflowTransitionListBuilder.php, line 245
Class
- WorkflowTransitionListBuilder
- Defines a class to build a draggable listing of Workflow State entities.
Namespace
Drupal\workflowCode
protected function showColumnFieldname(EntityInterface $entity) {
if (is_null($this->show_column_fieldname)) {
// @todo Also remove when field_name is set in route??
if (count(_workflow_info_fields($entity)) > 1) {
$this->show_column_fieldname = TRUE;
}
}
return $this->show_column_fieldname;
}