getRobots method

Get robots string value value from setRobots method.

Basic Usage

The basic usage for getRobots method is:

getRobots(): string

Parameters

There is no parameter available for getRobots method.

Example Usage

Here is the full example of getRobots method in a layout file.

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