public function SchemaTrueFalseBase::getForm in Schema.org Metatag 7
Build the form for this meta tag.
Return value
array A standard FormAPI array.
Overrides SchemaNameBase::getForm
File
- src/
SchemaTrueFalseBase.php, line 11
Class
- SchemaTrueFalseBase
- Provides a plugin for the 'trueFalseBase' meta tag.
Code
public function getForm(array $options = []) {
$form = parent::getForm($options);
$form['value']['#type'] = 'select';
$form['value']['#empty_option'] = $this
->t('- None -');
$form['value']['#empty_value'] = '';
$form['value']['#options'] = [
'False' => $this
->t('False'),
'True' => $this
->t('True'),
];
return $form;
}