public function SchemaTypeBase::typeOptions in Schema.org Metatag 8
Turn the list of types into an option list.
1 call to SchemaTypeBase::typeOptions()
- SchemaTypeBase::form in src/
Plugin/ metatag/ Tag/ SchemaTypeBase.php - Generate a form element for this meta tag.
File
- src/
Plugin/ metatag/ Tag/ SchemaTypeBase.php, line 59
Class
- SchemaTypeBase
- Provides a plugin for the 'schema_type_base' meta tag.
Namespace
Drupal\schema_metatag\Plugin\metatag\TagCode
public function typeOptions() {
$types = static::types();
$labels = static::labels();
return array_combine($types, $labels);
}