SchemaTrueFalseBase.php in Schema.org Metatag 8
File
src/Plugin/metatag/Tag/SchemaTrueFalseBase.php
View source
<?php
namespace Drupal\schema_metatag\Plugin\metatag\Tag;
class SchemaTrueFalseBase extends SchemaNameBase {
public function form(array $element = []) {
$form = parent::form($element);
$form['#type'] = 'select';
$form['#empty_option'] = $this
->t('- None -');
$form['#empty_value'] = '';
$form['#options'] = [
'False' => $this
->t('False'),
'True' => $this
->t('True'),
];
return $form;
}
public static function testValue() {
return 'False';
}
}