Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ObjectLoader.php

function ObjectLoader::getObject

Returns the object that the method will be called on to load routes.

For example, if your application uses a service container, the $id may be a service id.

1 call to ObjectLoader::getObject()
ObjectLoader::load in vendor/symfony/routing/Loader/ObjectLoader.php
Calls the object method that will load the routes.
1 method overrides ObjectLoader::getObject()
ContainerLoader::getObject in vendor/symfony/routing/Loader/ContainerLoader.php
Returns the object that the method will be called on to load routes.

File

vendor/symfony/routing/Loader/ObjectLoader.php, line 31

Class

ObjectLoader
A route loader that calls a method on an object to load the routes.

Namespace

Symfony\Component\Routing\Loader

Code

protected abstract function getObject(string $id) : object;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal