public function Drupal8::vocabularyIdentifier in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::vocabularyIdentifier()
- 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::vocabularyIdentifier()
Returns the unique identifier for the vocabulary.
Parameters
object $vocabulary: The vocabulary object.
Return value
mixed A unique identifier for this framework.
Overrides Framework::vocabularyIdentifier
2 calls to Drupal8::vocabularyIdentifier()
- Drupal8::taxonomyLoadTree in api/
src/ Framework/ Drupal8.php - Load a taxonomy tree.
- Drupal8::vocabularyMachineName in api/
src/ Framework/ Drupal8.php - Given a vocabulary, return its name.
File
- api/
src/ Framework/ Drupal8.php, line 386
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function vocabularyIdentifier($vocabulary) {
return $vocabulary
->id();
}