class LayoutRepository extends EntityRepository

Class LayoutRepository is injected as empire_layout_plugin.backend_layout_repository service. LayoutRepository is used for crud operation for managed entity.

Use this class to work with database.

Constants

ALIAS

Alias for layout

THEME_ALIAS

Alias for theme

Methods

Layout|bool|null
saveNewLayout(Layout $layout)

Persist new layout

array
getAllThemePages(string $theme)

Find all theme pages

Details

at line 45
Layout|bool|null saveNewLayout(Layout $layout)

Persist new layout

Parameters

Layout $layout

Return Value

Layout|bool|null

at line 65
array getAllThemePages(string $theme)

Find all theme pages

Parameters

string $theme

Return Value

array