SchemaIsAccessibleForFreeBase.php in Schema.org Metatag 7
File
src/SchemaIsAccessibleForFreeBase.php
View source
<?php
class SchemaIsAccessibleForFreeBase extends SchemaNameBase {
public function getForm(array $options = []) {
$form = parent::getForm($options);
$form['value']['#type'] = 'select';
$form['value']['#empty_option'] = t('True');
$form['value']['#empty_value'] = '';
$form['value']['#options'] = [
'False' => 'False',
];
$form['value']['#description'] = $this
->t('Whether this object is accessible for free. If used on a CreativeWork, like a WebPage or Article, be sure to fill out "hasPart" as well.');
return $form;
}
public static function testValue() {
return 'False';
}
}