getKeyword Method

This method will get keyword string from setKeyword method.

Basic Usage

Here is the basic usage of getKeyword method.

getKeyword(): void

Parameters

getKeyword method has no parameter required.

Example Usage

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

<!DOCTYPE html>
<html>
<head>
  ...
  <meta name="keyword" content="<?php echo $this->getKeyword(); ?>"/>
  ...
</head>
<body>
  ...
</body>
</html>