You are here

public function SchedulerManager::getUserPageViewRoutes in Scheduler 2.x

Gets the routes for user profile page scheduled views.

Return value

array List of routes for the user page views, keyed by entity type.

File

src/SchedulerManager.php, line 1034

Class

SchedulerManager
Defines a scheduler manager.

Namespace

Drupal\scheduler

Code

public function getUserPageViewRoutes() {
  $plugins = $this
    ->getPlugins();
  $routes = [];
  foreach ($plugins as $entityTypeId => $plugin) {

    // The user view is optional so only save if there is a value.
    if ($route = $plugin
      ->userViewRoute()) {
      $routes[$entityTypeId] = $route;
    }
  }
  return $routes;
}