Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ContextInterface $context, ScopeConfigInterface $scopeConfig, Repository $assetRepo, $type) | |
getUrl () | |
getContentType () | |
getPath () | |
getSourceFile () | |
getSourceContentType () | |
getContent () | |
getFilePath () | |
getContext () | |
getModule () | |
A locally available image placeholder file asset that can be referred with a file type
Definition at line 18 of file Placeholder.php.
__construct | ( | ContextInterface | $context, |
ScopeConfigInterface | $scopeConfig, | ||
Repository | $assetRepo, | ||
$type | |||
) |
Placeholder constructor.
ContextInterface | $context | |
ScopeConfigInterface | $scopeConfig | |
Repository | $assetRepo | |
string | $type |
Definition at line 64 of file Placeholder.php.
getContent | ( | ) |
{Get content of a local asset
Implements LocalInterface.
Definition at line 142 of file Placeholder.php.
getContentType | ( | ) |
{Retrieve type of contents
Implements AssetInterface.
Definition at line 93 of file Placeholder.php.
getContext | ( | ) |
{Get context of the asset that contains data necessary to build an absolute path or URL to the file
Implements LocalInterface.
Definition at line 169 of file Placeholder.php.
getFilePath | ( | ) |
{Get an invariant relative path to file
Implements LocalInterface.
Definition at line 150 of file Placeholder.php.
getModule | ( | ) |
{Get the module context of file path
Implements LocalInterface.
Definition at line 177 of file Placeholder.php.
getPath | ( | ) |
{Get a relative "context" path to the asset fileThis path includes both invariant and context part that can serve as an identifier of the file in current context
Implements LocalInterface.
Definition at line 101 of file Placeholder.php.
getSourceContentType | ( | ) |
Get source content type
Implements AssetInterface.
Definition at line 134 of file Placeholder.php.
getSourceFile | ( | ) |
{Get original source file where the asset contents can be read fromReturns absolute path to file in local file system
Implements LocalInterface.
Definition at line 124 of file Placeholder.php.
getUrl | ( | ) |
{Retrieve URL pointing to a resource
Implements AssetInterface.
Definition at line 79 of file Placeholder.php.