EntityController::__construct

public EntityController::__construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityRepositoryInterface $entity_repository, RendererInterface $renderer, TranslationInterface $string_translation, UrlGeneratorInterface $url_generator) Constructs a new EntityController. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_typ

EntityController::title

public EntityController::title(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) Provides a generic title callback for a single entity. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. \Drupal\Core\Entity\EntityInterface $_entity: (optional) An entity, passed in directly from the request attributes. Return value string|null The title for the entity view page, if an entity was found. File core/lib/Drupal/Core/Entity/Controller/EntityController

EntityController::loadBundleDescriptions

protected EntityController::loadBundleDescriptions(array $bundles, EntityTypeInterface $bundle_entity_type) Expands the bundle information with descriptions, if known. Parameters array $bundles: An array of bundle information. \Drupal\Core\Entity\EntityTypeInterface $bundle_entity_type: The ID of the bundle entity type. Return value array The expanded array of bundle information. File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 309 Class EntityController Provides th

EntityController::editTitle

public EntityController::editTitle(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) Provides a generic edit title callback. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. \Drupal\Core\Entity\EntityInterface $_entity: (optional) An entity, passed in directly from the request attributes. Return value string|null The title for the entity edit page, if an entity was found. File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line

EntityController::doGetEntity

protected EntityController::doGetEntity(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) Determines the entity. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. \Drupal\Core\Entity\EntityInterface $_entity: (optional) The entity, set in \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer. Return value \Drupal\Core\Entity\EntityInterface|null The entity, if it is passed in directly or if the first parameter of the active route is an entity; othe

EntityController::deleteTitle

public EntityController::deleteTitle(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) Provides a generic delete title callback. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. \Drupal\Core\Entity\EntityInterface $_entity: (optional) An entity, passed in directly from the request attributes, and set in \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer. Return value string The title for the entity delete page. File core/lib/Drupal/Core/Entity/

EntityController::create

public static EntityController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

EntityController::addTitle

public EntityController::addTitle($entity_type_id) Provides a generic add title callback for an entity type. Parameters string $entity_type_id: The entity type ID. Return value string The title for the entity add page. File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 181 Class EntityController Provides the add-page and title callbacks for entities. Namespace Drupal\Core\Entity\Controller Code public function addTitle($entity_type_id) { $entity_type = $this->

EntityController::addPage

public EntityController::addPage($entity_type_id) Displays add links for the available bundles. Redirects to the add form if there's only one bundle available. Parameters string $entity_type_id: The entity type ID. Return value \Symfony\Component\HttpFoundation\RedirectResponse|array If there's only one available bundle, a redirect response. Otherwise, a render array with the add links for each bundle. File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 115 Class Entity

EntityController::addBundleTitle

public EntityController::addBundleTitle(RouteMatchInterface $route_match, $entity_type_id, $bundle_parameter) Provides a generic add title callback for entities with bundles. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. string $entity_type_id: The entity type ID. string $bundle_parameter: The name of the route parameter that holds the bundle. Return value string The title for the entity add page, if the bundle was found. File core/lib/Drupal/Core/Entity/C