NodePreviewConverter
class NodePreviewConverter implements ParamConverterInterface (View source)
Provides upcasting for a node entity in preview.
Properties
| protected PrivateTempStoreFactory | $tempStoreFactory | Stores the tempstore factory. |
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(PrivateTempStoreFactory $temp_store_factory)
Constructs a new NodePreviewConverter.
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.