VariantInheritanceResolver
in package
implements
InheritanceResolverInterface
Class VariantExtendsPropertyResolver
Interfaces, Classes and Traits
- InheritanceResolverInterface
- Class ExtendsHandlerInterface
Table of Contents
- PARENT = 'PARENT'
- SELF = 'SELF'
- $fileIO : FileIO
- __construct() : mixed
- VariantExtendsPropertyResolver constructor.
- getResourceFullPath() : string
- getResourceRelativePath() : mixed|string|null
- getVariantPathFromThemeAndSettings() : string
- jsonExtensionFolder() : string
- resolveInheritanceFileName() : string
- resolveInheritanceType() : string
- getFirstParentWithResource() : string|null
- getFirstParentWithVariant() : string|null
- getParentThemeIdOf() : string|null
- lookupThemeId() : string
Constants
PARENT
public
mixed
PARENT
= 'PARENT'
SELF
public
mixed
SELF
= 'SELF'
Properties
$fileIO
protected
FileIO
$fileIO
Methods
__construct()
VariantExtendsPropertyResolver constructor.
public
__construct(FileIO $fileIO) : mixed
Parameters
- $fileIO : FileIO
Return values
mixed —getResourceFullPath()
public
getResourceFullPath(mixed $theme, ResolverVariantSettings $variantSettings, string $resourcePath) : string
Parameters
- $theme : mixed
- $variantSettings : ResolverVariantSettings
- $resourcePath : string
Return values
string —getResourceRelativePath()
public
getResourceRelativePath( $settings, $resourcePath, $sourceFilename) : mixed|string|null
Parameters
Tags
Return values
mixed|string|null —getVariantPathFromThemeAndSettings()
public
getVariantPathFromThemeAndSettings( $theme, ResolverVariantSettings $variantSettings) : string
Parameters
- $theme :
- $variantSettings : ResolverVariantSettings
Return values
string —jsonExtensionFolder()
public
jsonExtensionFolder() : string
Return values
string —resolveInheritanceFileName()
public
resolveInheritanceFileName( $settings, $sourceFilename) : string
Parameters
Tags
Return values
string —resolveInheritanceType()
public
resolveInheritanceType( $settings, $sourceFilename) : string
Parameters
Return values
string —getFirstParentWithResource()
protected
getFirstParentWithResource(ResolverVariantSettings $variantSettings, $resourcePath) : string|null
Parameters
- $variantSettings : ResolverVariantSettings
- $resourcePath :
Tags
Return values
string|null —getFirstParentWithVariant()
protected
getFirstParentWithVariant(ResolverVariantSettings $variantSettings) : string|null
Parameters
- $variantSettings : ResolverVariantSettings
Tags
Return values
string|null —getParentThemeIdOf()
protected
getParentThemeIdOf(string $themeBasePath, string $theme) : string|null
Parameters
- $themeBasePath : string
- $theme : string
Tags
Return values
string|null —lookupThemeId()
protected
lookupThemeId(string $parentTheme, string $theme, string $themeBasePath) : string
Parameters
- $parentTheme : string
- $theme : string
- $themeBasePath : string