protected function AbstractSelectSynonymsWebTestCase::synonymsSelectOptionPrefix in Synonyms 7
Generate necessary prefix before the main wording of the label in select.
It may be useful to insert some kind of hierarchy indention, for example.
Parameters
object $entity: Fully loaded entity object whose prefix is requested in the option label of the synonyms friendly select widget
string $synonym: If this option comes from a synonym, that synonym will be supplied here
Return value
string Any suitable prefix before the main wording of the option for this particular option
2 calls to AbstractSelectSynonymsWebTestCase::synonymsSelectOptionPrefix()
- AbstractSelectSynonymsWebTestCase::assertSynonymsSelect in ./
synonyms.test - Assert correctness of the synonyms-friendly select widget.
- TaxonomyTermReferenceSelectSynonymsWebTestCase::synonymsSelectOptionPrefix in ./
synonyms.test - Generate necessary prefix before the main wording of the label in select.
1 method overrides AbstractSelectSynonymsWebTestCase::synonymsSelectOptionPrefix()
- TaxonomyTermReferenceSelectSynonymsWebTestCase::synonymsSelectOptionPrefix in ./
synonyms.test - Generate necessary prefix before the main wording of the label in select.
File
- ./
synonyms.test, line 1138 - Tests for the Synonyms module.
Class
- AbstractSelectSynonymsWebTestCase
- Test "Synonyms friendly select" widget of Synonyms module.
Code
protected function synonymsSelectOptionPrefix($entity, $synonym = NULL) {
return '';
}