VocabularySerializationTestController.php

Same filename in other branches
  1. 9 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php
  2. 8.9.x core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php
  3. 10 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php

Namespace

Drupal\vocabulary_serialization_test

File

core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularySerializationTestController.php

View source
<?php

declare (strict_types=1);
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;
    }

}

Classes

Title Deprecated Summary
VocabularySerializationTestController

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