RouteBuilder
class RouteBuilder implements RouteBuilderInterface, DestructableInterface (View source)
Provides a proxy class for \Drupal\Core\Routing\RouteBuilder.
Traits
Provides dependency injection friendly methods for serialization.
Properties
| protected array | $_serviceIds | An array of service IDs keyed by property name used for serialization. |
from DependencySerializationTrait |
| protected array | $_entityStorages | An array of entity type IDs keyed by the property name of their storages. |
from DependencySerializationTrait |
| protected string | $drupalProxyOriginalServiceId | The id of the original proxied service. |
|
| protected RouteBuilder | $service | The real proxied service, after it was lazy loaded. |
|
| protected ContainerInterface | $container | The service container. |
Methods
Constructs a ProxyClass Drupal proxy object.
Lazy loads the real service from the container.
Sets the router to be rebuilt next time rebuildIfNeeded() is called.
Rebuilds the route information and dumps it.
Rebuilds the route information if necessary, and dumps it.
Performs destruct operations.
Details
__sleep()
{@inheritdoc}
__wakeup()
{@inheritdoc}
__construct(ContainerInterface $container, string $drupal_proxy_original_service_id)
Constructs a ProxyClass Drupal proxy object.
protected object
lazyLoadItself()
Lazy loads the real service from the container.
setRebuildNeeded()
Sets the router to be rebuilt next time rebuildIfNeeded() is called.
bool
rebuild()
Rebuilds the route information and dumps it.
bool
rebuildIfNeeded()
Rebuilds the route information if necessary, and dumps it.
destruct()
Performs destruct operations.