protected function NameAdditionalPreferredTrait::getEmptyOption in Name Field 8
1 call to NameAdditionalPreferredTrait::getEmptyOption()
- NameAdditionalPreferredTrait::getNameAdditionalPreferredSettingsForm in src/
Traits/ NameAdditionalPreferredTrait.php - Returns a form for the default settings defined above.
File
- src/
Traits/ NameAdditionalPreferredTrait.php, line 163
Class
- NameAdditionalPreferredTrait
- Name form for preferred and alternative settings trait.
Namespace
Drupal\name\TraitsCode
protected function getEmptyOption() {
if ($this
->getTraitUsageIsField()) {
return $this
->t('-- none --');
}
else {
return $this
->t('-- field default --');
}
}