VocabularyResponse.php

Same filename and directory in other branches
  1. 11.x core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php
  2. 10 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php
  3. 9 core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php
  4. 8.9.x core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.php

Namespace

Drupal\vocabulary_serialization_test

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\vocabulary_serialization_test;

use Drupal\Core\Cache\CacheableResponse;
use Drupal\taxonomy\VocabularyInterface;

/**
 * A vocabulary response for testing.
 */
class VocabularyResponse extends CacheableResponse {
  
  /**
   * @var \Drupal\taxonomy\VocabularyInterface
   */
  protected $vocabulary;
  public function setVocabulary(VocabularyInterface $vocabulary) {
    $this->vocabulary = $vocabulary;
  }

}

Classes

Title Deprecated Summary
VocabularyResponse A vocabulary response for testing.

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