public function ConditionalFieldController::bundleListTitle in Conditional Fields 8
Same name and namespace in other branches
- 4.x src/Controller/ConditionalFieldController.php \Drupal\conditional_fields\Controller\ConditionalFieldController::bundleListTitle()
Title for bundle list of current entity type.
Parameters
string $entity_type: Entity type.
Return value
string The title for the bundle list page. The title for the bundle list page.
File
- src/
Controller/ ConditionalFieldController.php, line 135
Class
- ConditionalFieldController
- Returns responses for conditional_fields module routes.
Namespace
Drupal\conditional_fields\ControllerCode
public function bundleListTitle($entity_type) {
$type = $this->entityTypeManager
->getDefinition($entity_type);
return $type
->getLabel();
}