ComputedTestCacheableString.php
Same filename in other branches
Namespace
Drupal\entity_test\Plugin\DataTypeFile
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ DataType/ ComputedTestCacheableString.php
View source
<?php
declare (strict_types=1);
namespace Drupal\entity_test\Plugin\DataType;
use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
use Drupal\Core\Cache\RefinableCacheableDependencyTrait;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\TypedData\Attribute\DataType;
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.
*/
class ComputedTestCacheableString extends StringData implements RefinableCacheableDependencyInterface {
use RefinableCacheableDependencyTrait;
}
Classes
Title | Deprecated | Summary |
---|---|---|
ComputedTestCacheableString | The string data type with cacheability metadata. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.