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

save(BlockPageRoute $entity)

Save Block Page Route and clear routes cache

bool
removeRouteByReplacementPath(string $path)

Remove all routes with specified replacement path and clear routes cache

findRouteByPath(string $path)

Get single route for specified path

Details

at line 35
__construct(BlockPageRouteRepository $repository, BlockElementsEventContainer $eventContainer)

BlockElementsManager constructor.

Parameters

BlockPageRouteRepository $repository
BlockElementsEventContainer $eventContainer

at line 45
array getRoutes()

Get all visible and active routes

Return Value

array

at line 56
BlockPageRoute|string save(BlockPageRoute $entity)

Save Block Page Route and clear routes cache

Parameters

BlockPageRoute $entity

Return Value

BlockPageRoute|string

at line 70
bool removeRouteByReplacementPath(string $path)

Remove all routes with specified replacement path and clear routes cache

Parameters

string $path

Return Value

bool

at line 85
BlockPageRoute|null findRouteByPath(string $path)

Get single route for specified path

Parameters

string $path

Return Value

BlockPageRoute|null