public function Date::formElement in Schema.org Metatag 8.2
A property form element.
This will actually be rendered only by properties that have no more sub-properties.
Parameters
array $input_values: The array of input values used by form().
Return value
array A form array.
Overrides PropertyTypeBase::formElement
File
- src/
Plugin/ schema_metatag/ PropertyType/ Date.php, line 22
Class
- Date
- Provides a plugin for the 'Date' Schema.org property type.
Namespace
Drupal\schema_metatag\Plugin\schema_metatag\PropertyTypeCode
public function formElement(array $input_values) {
$form = parent::formElement($input_values);
$form['#description'] .= ' ' . $this
->t('Use a token like [node:created:html_datetime].');
return $form;
}