function VocabularyResponse::setVocabulary

Same name in other branches
  1. 8.9.x core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php \Drupal\vocabulary_serialization_test\VocabularyResponse::setVocabulary()
  2. 10 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php \Drupal\vocabulary_serialization_test\VocabularyResponse::setVocabulary()
  3. 11.x core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php \Drupal\vocabulary_serialization_test\VocabularyResponse::setVocabulary()

File

core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php, line 15

Class

VocabularyResponse

Namespace

Drupal\vocabulary_serialization_test

Code

public function setVocabulary(VocabularyInterface $vocabulary) {
    $this->vocabulary = $vocabulary;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.