You are here

public function SchemaWebPageDescription::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

schema_web_page/src/Plugin/metatag/Tag/SchemaWebPageDescription.php, line 31

Class

SchemaWebPageDescription
Provides a plugin for the 'schema_web_page_description' meta tag.

Namespace

Drupal\schema_web_page\Plugin\metatag\Tag

Code

public function form(array $element = []) {
  $form = parent::form($element);
  $form['#attributes']['placeholder'] = '[node:summary]';
  return $form;
}