Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Magento\Framework\Config\ThemeFactory $themeConfigFactory, ThemePackageList $themePackageList, ReadFactory $dirReadFactory) | |
addConstraint ($type, $value) | |
resetConstraints () | |
loadData ($printQuery=false, $logQuery=false) | |
toOptionArray ($addEmptyField=false) | |
hasTheme (ThemeInterface $theme) | |
getThemeByFullPath ($fullPath) | |
![]() | |
__construct (EntityFactoryInterface $entityFactory) | |
addFilter ($field, $value, $type='and') | |
addFieldToFilter ($field, $condition) | |
getFilter ($field) | |
isLoaded () | |
getCurPage ($displacement=0) | |
getLastPageNumber () | |
getPageSize () | |
getSize () | |
getFirstItem () | |
getLastItem () | |
getItems () | |
getColumnValues ($colName) | |
getItemsByColumnValue ($column, $value) | |
getItemByColumnValue ($column, $value) | |
addItem (\Magento\Framework\DataObject $item) | |
getAllIds () | |
removeItemByKey ($key) | |
removeAllItems () | |
clear () | |
walk ($callback, array $args=[]) | |
each ($objMethod, $args=[]) | |
setDataToAll ($key, $value=null) | |
setCurPage ($page) | |
setPageSize ($size) | |
setOrder ($field, $direction=self::SORT_ORDER_DESC) | |
setItemObjectClass ($className) | |
getNewEmptyItem () | |
distinct ($flag) | |
loadData ($printQuery=false, $logQuery=false) | |
load ($printQuery=false, $logQuery=false) | |
loadWithFilter ($printQuery=false, $logQuery=false) | |
toXml () | |
toArray ($arrRequiredFields=[]) | |
toOptionArray () | |
toOptionHash () | |
getItemById ($idValue) | |
getIterator () | |
count () | |
getFlag ($flag) | |
setFlag ($flag, $value=null) | |
hasFlag ($flag) | |
__sleep () | |
__wakeup () | |
Data Fields | |
const | CONSTRAINT_AREA = 'area' |
const | CONSTRAINT_VENDOR = 'vendor' |
const | CONSTRAINT_THEME_NAME = 'theme_name' |
![]() | |
const | SORT_ORDER_ASC = 'ASC' |
const | SORT_ORDER_DESC = 'DESC' |
Protected Member Functions | |
_loadFromFilesystem (array $themes) | |
_preparePathData ($themePackage) | |
_prepareConfigurationData ($themePackage) | |
_clearFilters () | |
_getConfigModel ($themePackage) | |
_getItemId (\Magento\Framework\DataObject $item) | |
![]() | |
_setIsLoaded ($flag=true) | |
_addItem ($item) | |
_getItemId (\Magento\Framework\DataObject $item) | |
_renderFilters () | |
_renderOrders () | |
_renderLimit () | |
_toOptionArray ($valueField='id', $labelField='name', $additional=[]) | |
_toOptionHash ($valueField='id', $labelField='name') | |
Protected Attributes | |
$_itemObjectClass = ThemeInterface::class | |
$themeConfigFactory | |
![]() | |
$_items = [] | |
$_itemObjectClass = \Magento\Framework\DataObject::class | |
$_orders = [] | |
$_filters = [] | |
$_isFiltersRendered = false | |
$_curPage = 1 | |
$_pageSize = false | |
$_totalRecords | |
$_isCollectionLoaded | |
$_flags = [] | |
$_entityFactory | |
Theme filesystem collection
Definition at line 14 of file ThemeList.php.
__construct | ( | \Magento\Framework\Data\Collection\EntityFactory | $entityFactory, |
\Magento\Framework\Config\ThemeFactory | $themeConfigFactory, | ||
ThemePackageList | $themePackageList, | ||
ReadFactory | $dirReadFactory | ||
) |
Constructor
\Magento\Framework\Data\Collection\EntityFactory | $entityFactory | |
\Magento\Framework\Config\ThemeFactory | $themeConfigFactory | |
ThemePackageList | $themePackageList | |
ReadFactory | $dirReadFactory |
Definition at line 80 of file ThemeList.php.
|
protected |
|
protected |
Return configuration model for the theme
ThemePackage | $themePackage |
Definition at line 299 of file ThemeList.php.
|
protected |
Retrieve item id
\Magento\Framework\DataObject | $item |
Definition at line 316 of file ThemeList.php.
|
protected |
Load themes collection from file system
ThemePackage[] | $themes |
Definition at line 197 of file ThemeList.php.
|
protected |
Return default configuration data
ThemePackage | $themePackage |
Definition at line 230 of file ThemeList.php.
|
protected |
Return default path related data
ThemePackage | $themePackage |
Definition at line 214 of file ThemeList.php.
addConstraint | ( | $type, | |
$value | |||
) |
Add constraint for the collection loading
See CONSTRAINT_* constants for supported types
string | $type | |
string | $value |
Definition at line 101 of file ThemeList.php.
getThemeByFullPath | ( | $fullPath | ) |
Get theme from file system by area and theme_path
string | $fullPath |
Implements ListInterface.
Definition at line 351 of file ThemeList.php.
hasTheme | ( | ThemeInterface | $theme | ) |
Checks that a theme present in filesystem collection
ThemeInterface | $theme |
Definition at line 339 of file ThemeList.php.
Fill collection with theme model loaded from filesystem
bool | $printQuery | |
bool | $logQuery |
Definition at line 145 of file ThemeList.php.
resetConstraints | ( | ) |
Reset constraints for the collection loading
Definition at line 118 of file ThemeList.php.
toOptionArray | ( | $addEmptyField = false | ) |
Return array for select field
bool | $addEmptyField |
Definition at line 327 of file ThemeList.php.
|
protected |
Definition at line 40 of file ThemeList.php.
|
protected |
Definition at line 45 of file ThemeList.php.
const CONSTRAINT_AREA = 'area' |
Area constraint type
Definition at line 19 of file ThemeList.php.
const CONSTRAINT_THEME_NAME = 'theme_name' |
Theme name constraint type
For example, "blank" part for theme "frontend/Magento/blank"
Definition at line 33 of file ThemeList.php.
const CONSTRAINT_VENDOR = 'vendor' |
Vendor constraint type
For example, "Magento" part for theme "frontend/Magento/blank"
Definition at line 26 of file ThemeList.php.