class PluginConfigRepository extends EntityRepository

Class PluginConfigRepository is injected as empire_plugin_config.repository service. PluginConfigRepository is used for crud operation for managed entity.

Use this class to work with database.

Constants

ALIAS

Alias for plugin configuration

TEMPLATES_ALIAS

Alias for plugin configuration template

Methods

boolean
saveMultiple(array $plugins)

Persist collection of plugin configurations

bool
update(PluginConfig $plugin)

Merge plugin configuration

bool
updateMultiple(array $plugins)

Merge collection of plugin configurations

array
findAllActivePluginConfigLayouts(string $pluginName = 'EmpireBlockElementsPlugin')

Find all active plugin configuration templates for specific plugin

array
findAllActivePluginsForTheme(string $theme)

Find all active plugin names for specific theme

setActivePluginConfigLayouts(array $activeLayouts)

Activate provided plugin layouts

array
getPluginsForTheme(string $themeName)

Find all plugins for specific theme

bool
emptyConfigForTheme(string $themeName)

Delete theme configuration

bool
updatePluginConfigState(string $pluginName, string $newPluginState, string $themeName)

Update plugin state for specific theme

getPluginConfig(string $pluginName, string $themeName)

Find plugin configuration for specific theme

array
getConfigs(array $pluginNames, string $themeName)

Find plugins configuration for specific theme

Details

at line 44
boolean saveMultiple(array $plugins)

Persist collection of plugin configurations

Parameters

array $plugins

Return Value

boolean

at line 70
bool update(PluginConfig $plugin)

Merge plugin configuration

Parameters

PluginConfig $plugin

Return Value

bool

at line 89
bool updateMultiple(array $plugins)

Merge collection of plugin configurations

Parameters

array $plugins

Return Value

bool

at line 115
array findAllActivePluginConfigLayouts(string $pluginName = 'EmpireBlockElementsPlugin')

Find all active plugin configuration templates for specific plugin

Parameters

string $pluginName

Return Value

array

at line 132
array findAllActivePluginsForTheme(string $theme)

Find all active plugin names for specific theme

Parameters

string $theme

Return Value

array

at line 148
setActivePluginConfigLayouts(array $activeLayouts)

Activate provided plugin layouts

Parameters

array $activeLayouts

at line 169
array getPluginsForTheme(string $themeName)

Find all plugins for specific theme

Parameters

string $themeName

Return Value

array

at line 188
bool emptyConfigForTheme(string $themeName)

Delete theme configuration

Parameters

string $themeName

Return Value

bool

at line 211
bool updatePluginConfigState(string $pluginName, string $newPluginState, string $themeName)

Update plugin state for specific theme

Parameters

string $pluginName
string $newPluginState
string $themeName

Return Value

bool

at line 238
PluginConfig|null getPluginConfig(string $pluginName, string $themeName)

Find plugin configuration for specific theme

Parameters

string $pluginName
string $themeName

Return Value

PluginConfig|null

at line 261
array getConfigs(array $pluginNames, string $themeName)

Find plugins configuration for specific theme

Parameters

array $pluginNames
string $themeName

Return Value

array