public function SchemaNameBase::getForm in Schema.org Metatag 7
Build the form for this meta tag.
Return value
array A standard FormAPI array.
Overrides DrupalTextMetaTag::getForm
8 calls to SchemaNameBase::getForm()
- SchemaDateBase::getForm in src/
SchemaDateBase.php  - Generate a form element for this meta tag.
 - SchemaIsAccessibleForFreeBase::getForm in src/
SchemaIsAccessibleForFreeBase.php  - Build the form for this meta tag.
 - SchemaItemListElementBase::getForm in src/
SchemaItemListElementBase.php  - Build the form for this meta tag.
 - SchemaMainEntityOfPageBase::getForm in src/
SchemaMainEntityOfPageBase.php  - Build the form for this meta tag.
 - SchemaRatingBase::getForm in src/
SchemaRatingBase.php  - Build the form for this meta tag.
 
32 methods override SchemaNameBase::getForm()
- SchemaActionBase::getForm in src/
SchemaActionBase.php  - Build the form for this meta tag.
 - SchemaAddressBase::getForm in src/
SchemaAddressBase.php  - Build the form for this meta tag.
 - SchemaAnswerBase::getForm in src/
SchemaAnswerBase.php  - Build the form for this meta tag.
 - SchemaBrandBase::getForm in src/
SchemaBrandBase.php  - Build the form for this meta tag.
 - SchemaContactPointBase::getForm in src/
SchemaContactPointBase.php  - Build the form for this meta tag.
 
File
- src/
SchemaNameBase.php, line 91  
Class
- SchemaNameBase
 - All Schema.org tags should extend this class.
 
Code
public function getForm(array $options = array()) {
  $form = parent::getForm($options);
  // Add a validation callback to serialize nested arrays.
  $form['value']['#element_validate'][] = 'schema_metatag_element_validate';
  return $form;
}