You are here

public static function SchemaMetatagManager::defaultInputValues in Schema.org Metatag 8.2

Same name and namespace in other branches
  1. 8 src/SchemaMetatagManager.php \Drupal\schema_metatag\SchemaMetatagManager::defaultInputValues()

Default values for input into nested elements.

Return value

array An array of default values.

  • @var string 'title' The title to use for the form element.
  • @var string 'description' The description to use for the form element.
  • @var array 'value' The current value of the form element.
  • @var string 'visibility_selector' The selector to use in assessing form element visibility, usually the @type element.
  • @var array 'tree_parent' The top level to use for @type, defaults to ''.
  • @var int 'tree_depth' The depth to go in the tree hierarchy, defaults to -1.
  • @var string 'type' The form element type, defaults to 'textfield'.
  • @var string 'multiple' Whether multiple values should be allowed, defaults to FALSE.

Overrides SchemaMetatagManagerInterface::defaultInputValues

File

src/SchemaMetatagManager.php, line 345

Class

SchemaMetatagManager
The SchemaMetatag Manager.

Namespace

Drupal\schema_metatag

Code

public static function defaultInputValues() {
  return [
    'title' => '',
    'description' => '',
    'value' => [],
    'visibility_selector' => '',
    'tree_parent' => [],
    'tree_depth' => -1,
    'multiple' => FALSE,
  ];
}