You are here

public function SchemaMainEntityOfPageBase::getForm in Schema.org Metatag 7

Build the form for this meta tag.

Return value

array A standard FormAPI array.

Overrides SchemaNameBase::getForm

File

src/SchemaMainEntityOfPageBase.php, line 11

Class

SchemaMainEntityOfPageBase
Schema.org MainEntityOfPage items should extend this class.

Code

public function getForm(array $options = []) {
  $form = parent::getForm($options);
  $form['value']['#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;
}