SchemaPivotTrait.php in Schema.org Metatag 8
File
src/Plugin/metatag/Tag/SchemaPivotTrait.php
View source
<?php
namespace Drupal\schema_metatag\Plugin\metatag\Tag;
trait SchemaPivotTrait {
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;
}
}