Class craft\web\twig\variables\Rebrand
- Inheritance
- craft\web\twig\variables\Rebrand
- Available since version
- 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/web/twig/variables/Rebrand.php
Rebranding functions.
Method | Description | Defined By |
---|---|---|
getIcon() |
Returns the icons variable, or null if a site icon hasn't been uploaded. | craft\web\twig\variables\Rebrand |
getImageVariable() |
Get the ImageVariable for type. | craft\web\twig\variables\Rebrand |
getLogo() |
Returns the logo'sw Image variable, or null if a logo hasn't been uploaded. | craft\web\twig\variables\Rebrand |
isIconUploaded() |
Returns whether a custom site icon has been uploaded. | craft\web\twig\variables\Rebrand |
isImageUploaded() |
Return whether the specified type of image has been uploaded for the site. | craft\web\twig\variables\Rebrand |
isLogoUploaded() |
Returns whether a custom logo has been uploaded. | craft\web\twig\variables\Rebrand |
Method Details
getIcon()
public method
#
Returns the icons variable, or null if a site icon hasn't been uploaded.
public craft\web\twig\variables\Image, null getIcon ( )
getImageVariable()
public method
#
Get the ImageVariable for type.
public craft\web\twig\variables\Image, null getImageVariable ( \craft\web\twig\variables\string $type )
$type |
string |
getLogo()
public method
#
Returns the logo'sw Image variable, or null if a logo hasn't been uploaded.
public craft\web\twig\variables\Image, null getLogo ( )
isIconUploaded()
public method
#
Returns whether a custom site icon has been uploaded.
public boolean isIconUploaded ( )
isImageUploaded()
public method
#
Return whether the specified type of image has been uploaded for the site.
public boolean isImageUploaded ( \craft\web\twig\variables\string $type )
$type |
string | 'logo' or 'icon'. |
isLogoUploaded()
public method
#
Returns whether a custom logo has been uploaded.
public boolean isLogoUploaded ( )