You are here

public static function ScheduledTransitionsRouteProvider::getScheduledTransitionAddRouteName in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/Routing/ScheduledTransitionsRouteProvider.php \Drupal\scheduled_transitions\Routing\ScheduledTransitionsRouteProvider::getScheduledTransitionAddRouteName()

Get the route name for scheduled transition form for an entity type..

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entityType: An entity type.

Return value

string The route name.

2 calls to ScheduledTransitionsRouteProvider::getScheduledTransitionAddRouteName()
ScheduledTransitionsLocalActions::getDerivativeDefinitions in src/Plugin/Derivative/ScheduledTransitionsLocalActions.php
Gets the definition of all derivatives of a base plugin.
ScheduledTransitionsRouteProvider::getRoutes in src/Routing/ScheduledTransitionsRouteProvider.php
Provides routes for entities.

File

src/Routing/ScheduledTransitionsRouteProvider.php, line 107

Class

ScheduledTransitionsRouteProvider
Route provider for host entities of Scheduled Transitions.

Namespace

Drupal\scheduled_transitions\Routing

Code

public static function getScheduledTransitionAddRouteName(EntityTypeInterface $entityType) {
  return sprintf('entity.%s.scheduled_transition_add', $entityType
    ->id());
}