function VocabularySerializationTestController::vocabularyResponse
Same name in other branches
- 9 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php \Drupal\vocabulary_serialization_test\VocabularySerializationTestController::vocabularyResponse()
- 8.9.x core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php \Drupal\vocabulary_serialization_test\VocabularySerializationTestController::vocabularyResponse()
- 10 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php \Drupal\vocabulary_serialization_test\VocabularySerializationTestController::vocabularyResponse()
1 string reference to 'VocabularySerializationTestController::vocabularyResponse'
- vocabulary_serialization_test.routing.yml in core/
modules/ taxonomy/ tests/ modules/ vocabulary_serialization_test/ vocabulary_serialization_test.routing.yml - core/modules/taxonomy/tests/modules/vocabulary_serialization_test/vocabulary_serialization_test.routing.yml
File
-
core/
modules/ taxonomy/ tests/ modules/ vocabulary_serialization_test/ src/ VocabularySerializationTestController.php, line 11
Class
Namespace
Drupal\vocabulary_serialization_testCode
public function vocabularyResponse(VocabularyInterface $taxonomy_vocabulary) {
$response = new VocabularyResponse('this is the output');
$response->setVocabulary($taxonomy_vocabulary);
return $response;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.