You are here

public function SchemaMainEntityOfPageBase::form in Schema.org Metatag 8

Generate a form element for this meta tag.

Parameters

array $element: The existing form element to attach to.

Return value

array The completed form element.

Overrides MetaNameBase::form

File

src/Plugin/metatag/Tag/SchemaMainEntityOfPageBase.php, line 13

Class

SchemaMainEntityOfPageBase
Schema.org MainEntityOfPage items should extend this class.

Namespace

Drupal\schema_metatag\Plugin\metatag\Tag

Code

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;
}