You are here

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

Generate a form element for this meta tag.

Overrides MetaNameBase::form

2 calls to SchemaDateBase::form()
SchemaEventDoorTime::form in schema_event/src/Plugin/metatag/Tag/SchemaEventDoorTime.php
Generate a form element for this meta tag.
SchemaPersonBirthDate::form in schema_person/src/Plugin/metatag/Tag/SchemaPersonBirthDate.php
Generate a form element for this meta tag.
2 methods override SchemaDateBase::form()
SchemaEventDoorTime::form in schema_event/src/Plugin/metatag/Tag/SchemaEventDoorTime.php
Generate a form element for this meta tag.
SchemaPersonBirthDate::form in schema_person/src/Plugin/metatag/Tag/SchemaPersonBirthDate.php
Generate a form element for this meta tag.

File

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

Class

SchemaDateBase
Provides a plugin for the 'schema_date_base' meta tag.

Namespace

Drupal\schema_metatag\Plugin\metatag\Tag

Code

public function form(array $element = []) {
  $form = parent::form($element);
  $form['#description'] .= ' ' . $this
    ->t('Use a token like [node:created:html_datetime].');
  return $form;
}