private function validateCustomStylesConfiguration(
        ContainerInterface $container,
        array $enabledCustomStyles
    ) {
        $definedCustomStyles = array_keys(
            $container->getParameter(EzPublishCoreExtension::RICHTEXT_CUSTOM_STYLES_PARAMETER)
        );
        foreach ($enabledCustomStyles as $customStyleName) {
            if (!in_array($customStyleName, $definedCustomStyles)) {
                throw new InvalidConfigurationException(
                    "Unknown RichText Custom Style '{$customStyleName}'"
                );
            }
        }
    }
private function validateCustomStylesConfiguration(
        ContainerInterface $container,
        array $enabledCustomStyles
    ) {
        $definedCustomStyles = array_keys(
            $container->getParameter(EzPublishCoreExtension::RICHTEXT_CUSTOM_STYLES_PARAMETER)
        );
        foreach ($enabledCustomStyles as $customStyleName) {
            if (!in_array($customStyleName, $definedCustomStyles)) {
                throw new InvalidConfigurationException(
                    "Unknown RichText Custom Style '{$customStyleName}'"
                );
            }
        }
    }
private function validateCustomStylesConfiguration ( ContainerInterface $ container , array $ enabledCustomStyles ) { $ definedCustomStyles = array_keys ( $ container -> getParameter ( EzPublishCoreExtension :: RICHTEXT_CUSTOM_STYLES_PARAMETER ) ) ; foreach ( $ enabledCustomStyles as $ customStyleName ) { if ( ! in_array ( $ customStyleName , $ definedCustomStyles ) ) { throw new InvalidConfigurationException ( "Unknown RichText Custom Style '{$customStyleName}'" ) ; } } }
Validate SiteAccess-defined Custom Styles configuration against global one.

@param \Symfony\Component\DependencyInjection\ContainerInterface $container
@param array $enabledCustomStyles List of Custom Styles enabled for the current scope/SiteAccess
Validate SiteAccess - defined Custom Styles configuration against global one .