StyleEdit3ConfigurationFactory
in package
implements
StyleEdit3ConfigurationFactoryInterface
Class StyleEdit3ConfigurationFactory
Interfaces, Classes and Traits
- StyleEdit3ConfigurationFactoryInterface
- Interface StyleEdit3ConfigurationFactoryInterface
Table of Contents
- NAME_DETECTION_PATTERN = '/(themes\/|StyleEdit3\/templates\/)([^\/]+)/'
- SE3_VERSION_DETECTION_PATTERN = '/(styles\/styleedit|StyleEdit3)/'
- $filesystem : FilesystemAdapter
- __construct() : mixed
- StyleEdit3ConfigurationFactory constructor.
- createForTemplate() : StyleEdit3ConfigurationInterface
- createForTheme() : StyleEdit3ConfigurationInterface
- getConfigurationConstructorParameters() : array<string|int, mixed>
- getJsonObjectFromPath() : stdClass
Constants
NAME_DETECTION_PATTERN
protected
mixed
NAME_DETECTION_PATTERN
= '/(themes\/|StyleEdit3\/templates\/)([^\/]+)/'
SE3_VERSION_DETECTION_PATTERN
protected
mixed
SE3_VERSION_DETECTION_PATTERN
= '/(styles\/styleedit|StyleEdit3)/'
Properties
$filesystem
protected
FilesystemAdapter
$filesystem
Methods
__construct()
StyleEdit3ConfigurationFactory constructor.
public
__construct(FilesystemAdapter $filesystem) : mixed
Parameters
- $filesystem : FilesystemAdapter
Return values
mixed —createForTemplate()
public
createForTemplate(string $path) : StyleEdit3ConfigurationInterface
Parameters
- $path : string
Tags
Return values
StyleEdit3ConfigurationInterface —createForTheme()
public
createForTheme(string $path) : StyleEdit3ConfigurationInterface
Parameters
- $path : string
Tags
Return values
StyleEdit3ConfigurationInterface —getConfigurationConstructorParameters()
protected
getConfigurationConstructorParameters(string $path) : array<string|int, mixed>
Parameters
- $path : string
Tags
Return values
array<string|int, mixed> —getJsonObjectFromPath()
protected
getJsonObjectFromPath(string $path) : stdClass
Parameters
- $path : string