MenuLinkPluginConverter
class MenuLinkPluginConverter implements ParamConverterInterface (View source)
Parameter converter for upcasting entity ids to full objects.
Properties
| protected MenuLinkManagerInterface | $menuLinkManager | Plugin manager which creates the instance from the value. |
Methods
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
__construct(MenuLinkManagerInterface $menu_link_manager)
Constructs a new MenuLinkPluginConverter.
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.