getDescription method

getDescription get meta description value, this method used only with setDescription method.

Basic Usage

The basic usage for getDescription method is:

getDescription(): string

Parameters

There is no parameter available for getDescription method.

Example Usage

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

<!DOCTYPE html>
<html>
<head>
  ...
  <meta name="description" content="<?=$this->getDescription()?>" />
  ...
</head>
<body>
  ...
</body>
</html>