Rebrand
- Type
- Class
- Namespace
- craft\web\twig\variables
- Inherits
- craft\web\twig\variables\Rebrand
- Since
- 3.0.0
Rebranding functions.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__construct() | |
getIcon() | Returns the icons variable, or null if a site icon hasn't been uploaded. |
getImageVariable() | Get the ImageVariable for type. |
getLogo() | Returns the logo'sw Image variable, or null if a logo hasn't been uploaded. |
isIconUploaded() | Returns whether a custom site icon has been uploaded. |
isImageUploaded() | Return whether the specified type of image has been uploaded for the site. |
isLogoUploaded() | Returns whether a custom logo has been uploaded. |
# __construct()
View source (opens new window)
Throws
# getIcon()
Returns the icons variable, or null if a site icon hasn't been uploaded.
View source (opens new window)
Returns
craft\web\twig\variables\Image, null (opens new window)
# getImageVariable()
Get the ImageVariable for type.
View source (opens new window)
Arguments
$type
(string (opens new window))
Returns
craft\web\twig\variables\Image, null (opens new window)
# getLogo()
Returns the logo'sw Image variable, or null if a logo hasn't been uploaded.
View source (opens new window)
Returns
craft\web\twig\variables\Image, null (opens new window)
# isIconUploaded()
Returns whether a custom site icon has been uploaded.
View source (opens new window)
Returns
# isImageUploaded()
Return whether the specified type of image has been uploaded for the site.
View source (opens new window)
Arguments
$type
(string (opens new window)) – 'logo' or 'icon'.
Returns
# isLogoUploaded()
Returns whether a custom logo has been uploaded.
View source (opens new window)