BlockPageRouteManager
class BlockPageRouteManager implements BasicEntityManagerInterface
Class BlockPageRouteManager is injected as empire_block_page_route.manager service. BlockPageRouteManager handles the logic for entity.
Properties
| protected BlockPageRepository | $repository | ||
| protected BlockElementsEventContainer | $eventContainer |
Methods
__construct(BlockPageRouteRepository $repository, BlockElementsEventContainer $eventContainer)
BlockElementsManager constructor.
array
getRoutes()
Get all visible and active routes
BlockPageRoute|string
bool
removeRouteByReplacementPath(string $path)
Remove all routes with specified replacement path and clear routes cache
BlockPageRoute|null
findRouteByPath(string $path)
Get single route for specified path
Details
at line 35
__construct(BlockPageRouteRepository $repository, BlockElementsEventContainer $eventContainer)
BlockElementsManager constructor.
at line 45
array
getRoutes()
Get all visible and active routes
at line 56
BlockPageRoute|string
save(BlockPageRoute $entity)
Save Block Page Route and clear routes cache
at line 70
bool
removeRouteByReplacementPath(string $path)
Remove all routes with specified replacement path and clear routes cache
at line 85
BlockPageRoute|null
findRouteByPath(string $path)
Get single route for specified path