public function Framework::newVocabularyTerm in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::newVocabularyTerm()
- 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::newVocabularyTerm()
Creates a new vocabulary term.
Parameters
object $vocabulary: The vocabulary object.
string $name: The name of the new taxonomy term.
Return value
object The taxonomy term object.
Overrides FrameworkInterface::newVocabularyTerm
1 method overrides Framework::newVocabularyTerm()
- Drupal8::newVocabularyTerm in api/
src/ Framework/ Drupal8.php - Creates a new vocabulary term.
File
- api/
src/ Framework/ Framework.php, line 259
Class
- Framework
- The entry point for the framework.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function newVocabularyTerm($vocabulary, $name) {
return $this
->implementor()
->newVocabularyTerm($vocabulary, $name);
}