You are here

VocabularyResponse.php in Drupal 9

File

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

namespace Drupal\vocabulary_serialization_test;

use Drupal\Core\Cache\CacheableResponse;
use Drupal\taxonomy\VocabularyInterface;
class VocabularyResponse extends CacheableResponse {

  /**
   * @var \Drupal\taxonomy\VocabularyInterface
   */
  protected $vocabulary;
  public function setVocabulary(VocabularyInterface $vocabulary) {
    $this->vocabulary = $vocabulary;
  }

}

Classes

Namesort descending Description
VocabularyResponse