Routes.php

Same filename in this branch
  1. 10 core/modules/jsonapi/src/Routing/Routes.php
Same filename in other branches
  1. 9 core/modules/jsonapi/src/Routing/Routes.php
  2. 9 core/modules/menu_link_content/tests/menu_link_content_dynamic_route/src/Routes.php
  3. 8.9.x core/modules/jsonapi/src/Routing/Routes.php
  4. 8.9.x core/modules/menu_link_content/tests/menu_link_content_dynamic_route/src/Routes.php
  5. 11.x core/modules/jsonapi/src/Routing/Routes.php
  6. 11.x core/modules/menu_link_content/tests/menu_link_content_dynamic_route/src/Routes.php

Namespace

Drupal\menu_link_content_dynamic_route

File

core/modules/menu_link_content/tests/menu_link_content_dynamic_route/src/Routes.php

View source
<?php

namespace Drupal\menu_link_content_dynamic_route;


/**
 * Provides dynamic routes for test purposes.
 */
class Routes {
    public function dynamic() {
        return \Drupal::state()->get('menu_link_content_dynamic_route.routes', []);
    }

}

Classes

Title Deprecated Summary
Routes Provides dynamic routes for test purposes.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.