trait SchemaPivotTrait in Schema.org Metatag 7
Schema.org Schema Metatag Manager trait.
Hierarchy
- trait \SchemaPivotTrait
File
- src/
SchemaPivotTrait.php, line 6
View source
trait SchemaPivotTrait {
/**
* The form element.
*/
public function pivotForm($value) {
$form = [
'#type' => 'select',
'#title' => 'Pivot',
'#default_value' => !empty($value['pivot']) ? $value['pivot'] : '',
'#empty_option' => t('- None -'),
'#empty_value' => '',
'#options' => [
1 => $this
->t('Pivot'),
],
'#weight' => -9,
'#description' => $this
->t('Combine and pivot multiple values to display them as multiple objects.'),
];
return $form;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SchemaPivotTrait:: |
public | function | The form element. |