SchemaMainEntityOfPageBase.php in Schema.org Metatag 7
File
src/SchemaMainEntityOfPageBase.php
View source
<?php
class SchemaMainEntityOfPageBase extends SchemaNameBase {
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;
}
public static function testValue() {
return static::randomUrl();
}
}