You are here

public function VocabularySerializationTestController::vocabularyResponse in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php \Drupal\vocabulary_serialization_test\VocabularySerializationTestController::vocabularyResponse()
  2. 9 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 9

Class

VocabularySerializationTestController

Namespace

Drupal\vocabulary_serialization_test

Code

public function vocabularyResponse(VocabularyInterface $taxonomy_vocabulary) {
  $response = new VocabularyResponse('this is the output');
  $response
    ->setVocabulary($taxonomy_vocabulary);
  return $response;
}