You are here

SchemaMainEntityOfPageBase.php in Schema.org Metatag 8

File

src/Plugin/metatag/Tag/SchemaMainEntityOfPageBase.php
View source
<?php

namespace Drupal\schema_metatag\Plugin\metatag\Tag;


/**
 * Schema.org MainEntityOfPage items should extend this class.
 */
class SchemaMainEntityOfPageBase extends SchemaNameBase {

  /**
   * {@inheritdoc}
   */
  public function form(array $element = []) {
    $form = parent::form($element);
    $form['#description'] = $this
      ->t("If this is the main content of the page, provide url of the page. i.e. '[current-page:url]'. Only one object on each page should be marked as the main entity of the page.");
    return $form;
  }

}

Classes

Namesort descending Description
SchemaMainEntityOfPageBase Schema.org MainEntityOfPage items should extend this class.