class AdminPathConfigEntityConverter implements ParamConverterInterface (View source)

Provides a proxy class for \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter.

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 AdminPathConfigEntityConverter $service

The real proxied service, after it was lazy loaded.

protected ContainerInterface $container

The service container.

Methods

__sleep()

{@inheritdoc}

__wakeup()

{@inheritdoc}

__construct(ContainerInterface $container, string $drupal_proxy_original_service_id)

Constructs a ProxyClass Drupal proxy object.

object
lazyLoadItself()

Lazy loads the real service from the container.

mixed|null
convert(mixed $value, mixed $definition, string $name, array $defaults)

Converts path variables to their corresponding objects.

bool
applies(mixed $definition, string $name, Route $route)

Determines if the converter applies to a specific route and variable.

Details

__sleep()

{@inheritdoc}

__wakeup()

{@inheritdoc}

__construct(ContainerInterface $container, string $drupal_proxy_original_service_id)

Constructs a ProxyClass Drupal proxy object.

Parameters

ContainerInterface $container

The container.

string $drupal_proxy_original_service_id

The service ID of the original service.

protected object lazyLoadItself()

Lazy loads the real service from the container.

Return Value

object

Returns the constructed real service.

mixed|null convert(mixed $value, mixed $definition, string $name, array $defaults)

Converts path variables to their corresponding objects.

Parameters

mixed $value

The raw value.

mixed $definition

The parameter definition provided in the route options.

string $name

The name of the parameter.

array $defaults

The route defaults array.

Return Value

mixed|null

The converted parameter value.

bool applies(mixed $definition, string $name, Route $route)

Determines if the converter applies to a specific route and variable.

Parameters

mixed $definition

The parameter definition provided in the route options.

string $name

The name of the parameter.

Route $route

The route to consider attaching to.

Return Value

bool

TRUE if the converter applies to the passed route and parameter, FALSE otherwise.