You are here

public function MetatagManagerInterface::form in Metatag 8

Builds the form element for a Metatag field.

If a list of either groups or tags are passed in, those will be used to limit the groups/tags on the form. If nothing is passed in, all groups and tags will be used.

Parameters

array $values: Existing values.

array $element: Existing element.

array $token_types: Token types to return in the tree.

array $included_groups: Available group plugins.

array $included_tags: Available tag plugins.

bool $verbose_help: Whether to include extra help text at the top of the form or keep it short.

Return value

array Render array for metatag form.

1 method overrides MetatagManagerInterface::form()
MetatagManager::form in src/MetatagManager.php
Builds the form element for a Metatag field.

File

src/MetatagManagerInterface.php, line 99

Class

MetatagManagerInterface
Class MetatagManager.

Namespace

Drupal\metatag

Code

public function form(array $values, array $element, array $token_types = [], array $included_groups = NULL, array $included_tags = NULL, $verbose_help = FALSE);