You are here

public function ConditionalFieldController::bundleListTitle in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 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.

File

src/Controller/ConditionalFieldController.php, line 138

Class

ConditionalFieldController
Returns responses for conditional_fields module routes.

Namespace

Drupal\conditional_fields\Controller

Code

public function bundleListTitle($entity_type) {
  $type = $this->entityTypeManager
    ->getDefinition($entity_type);
  return $type
    ->getLabel();
}