VocabularyResponse.php in Drupal 9
Namespace
Drupal\vocabulary_serialization_testFile
core/modules/taxonomy/tests/modules/vocabulary_serialization_test/src/VocabularyResponse.phpView 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
Name | Description |
---|---|
VocabularyResponse |