getIcon method

getIcon the current page, this method used only with setIcon method.

Basic Usage

The basic usage for getIcon method.

getIcon(): string

Parameters

There is no parameter available for getIcon method.

Example Usage

Usually this method called inside a layout file. Here is the basic example for getIcon method. Here is the content of col-1.php layout file.

<!DOCTYPE html>
<html>
<head>
  ...
  <link rel="icon" href="<?php echo $this->getIcon(); ?>" type="image/x-icon" />
  ...
</head>
<body>
  ...
</body>
</html>