You are here

VocabularySerializationTestController.php in Drupal 10

File

core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php
View source
<?php

namespace Drupal\vocabulary_serialization_test;

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

}