@api
- Since
- 100.0.2
Definition at line 16 of file Theme.php.
◆ __construct()
Constructor
- Parameters
-
\Magento\Framework\Config\Dom\UrnResolver | $urnResolver | |
string | $configContent | |
Definition at line 41 of file Theme.php.
46 $this->_data = $this->_extractData($configContent);
◆ getMedia()
Get theme media data
- Returns
- array
Definition at line 108 of file Theme.php.
110 return $this->_data[
'media'];
◆ getParentTheme()
Retrieve a parent theme code
- Returns
- array|null
Definition at line 118 of file Theme.php.
120 $parentTheme = $this->_data[
'parent'];
124 return explode(self::THEME_PATH_SEPARATOR, $parentTheme);
◆ getSchemaFile()
Get absolute path to theme.xsd
- Returns
- string
Definition at line 54 of file Theme.php.
56 return $this->urnResolver->getRealPath(
'urn:magento:framework:Config/etc/theme.xsd');
◆ getThemeTitle()
Get title for specified theme and package code
- Returns
- string
Definition at line 98 of file Theme.php.
100 return $this->_data[
'title'];
◆ $_data
◆ $urnResolver
◆ THEME_PATH_SEPARATOR
const THEME_PATH_SEPARATOR = '/' |
Is used for separation path of themes
Definition at line 21 of file Theme.php.
The documentation for this class was generated from the following file: