ComputedTestCacheableString.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\entity_test\Plugin\DataTypeFile
core/modules/system/tests/modules/entity_test/src/Plugin/DataType/ComputedTestCacheableString.phpView source
<?php
namespace Drupal\entity_test\Plugin\DataType;
use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
use Drupal\Core\Cache\RefinableCacheableDependencyTrait;
use Drupal\Core\TypedData\Plugin\DataType\StringData;
/**
* The string data type with cacheability metadata.
*
* The plain value of a string is a regular PHP string. For setting the value
* any PHP variable that casts to a string may be passed.
*
* @DataType(
* id = "computed_test_cacheable_string",
* label = @Translation("Computed Test Cacheable String")
* )
*/
class ComputedTestCacheableString extends StringData implements RefinableCacheableDependencyInterface {
use RefinableCacheableDependencyTrait;
}
Classes
Name | Description |
---|---|
ComputedTestCacheableString | The string data type with cacheability metadata. |