LayoutManager
class LayoutManager implements BasicEntityManagerInterface
Class LayoutManager is injected as empire_layout_plugin.backend_layout_manager service. LayoutManager handles the logic for managed entity.
Properties
| protected LayoutRepository | $repository | ||
| protected Parser | $ymlParser | ||
| protected Filesystem | $fileSystem | ||
| protected | $plugins | ||
| protected Dumper | $dumper | ||
| protected EventDispatcherInterface | $dispatcher | ||
| protected Client | $cache | ||
| protected PluginLayoutEventContainer | $container |
Methods
LayoutManager constructor.
Persist layouts in database and file
Find all plugins from file
Get cached plugins
Do plugins change in file and database
Load plugins from another shop instance
Return all pages to be managed
Return all pages to be managed
Save custom layouts to file
Add new custom layout
Return plugins for route
Change layout status and data in file and database
Details
at line 81
__construct(LayoutRepository $repository, EventDispatcherInterface $dispatcher, Client $cache, PluginLayoutEventContainer $container)
LayoutManager constructor.
at line 96
saveLayout(mixed $layout)
Persist layouts in database and file
at line 108
array|mixed|null
getAllPlugins()
Find all plugins from file
at line 128
array|mixed|null
getAllPluginsFromCache()
Get cached plugins
at line 138
editPluginsArray(mixed $layout)
Do plugins change in file and database
at line 177
mixed
checkForMultipleInstance()
Load plugins from another shop instance
at line 189
array
getAllPages()
Return all pages to be managed
at line 202
array
getAllThemePages(bool|mixed|string $theme = FRONTEND_THEME_TITLE)
Return all pages to be managed
at line 216
bool
saveThemePagesFile(array $routes, bool|mixed|string $theme = FRONTEND_THEME_TITLE)
Save custom layouts to file
at line 235
bool
addCustomLayout(string $layout)
Add new custom layout
at line 264
array|string
getPluginsForRoute(string $routeName, array $layouts = null)
Return plugins for route
at line 292
bool|string
changeLayouts(array $changedItems)
Change layout status and data in file and database