Yaffs site version 1.1
[yaffs-website] / web / modules / contrib / metatag / src / Plugin / metatag / Tag / Title.php
1 <?php
2
3 namespace Drupal\metatag\Plugin\metatag\Tag;
4
5 /**
6  * The standard page title.
7  *
8  * @MetatagTag(
9  *   id = "title",
10  *   label = @Translation("Page title"),
11  *   description = @Translation("The text to display in the title bar of a visitor's web browser when they view this page. This meta tag may also be used as the title of the page when a visitor bookmarks or favorites this page, or as the page title in a search engine result. It is common to append '[site:name]' to the end of this, so the site's name is automatically added. It is recommended that the title is no greater than 55 - 65 characters long, including spaces."),
12  *   name = "title",
13  *   group = "basic",
14  *   weight = -1,
15  *   type = "label",
16  *   secure = FALSE,
17  *   multiple = FALSE
18  * )
19  */
20 class Title extends MetaNameBase {
21
22   /**
23    * Override the output of this tag so it's an actual TITLE tag.
24    *
25    * @todo Override the existing title tag X-)
26    */
27   // public function output() {
28   //   if (empty($this->value)) {
29   //     // If there is no value, we don't want a tag output.
30   //     $element = '';
31   //   }
32   //   else {
33   //     $element = [
34   //       '#theme' => 'hidden',
35   //       // '#tag' => 'title',
36   //       '#value' => $this->value(),
37   //     ];
38   //   }
39   //
40   //   return $element;
41   // }
42 }