class ComputedTestCacheableString
Same name and namespace in other branches
- 10 core/modules/system/tests/modules/entity_test/src/Plugin/DataType/ComputedTestCacheableString.php \Drupal\entity_test\Plugin\DataType\ComputedTestCacheableString
- 11.x core/modules/system/tests/modules/entity_test/src/Plugin/DataType/ComputedTestCacheableString.php \Drupal\entity_test\Plugin\DataType\ComputedTestCacheableString
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.
Plugin annotation
@DataType(
id = "computed_test_cacheable_string",
label = @Translation("Computed Test Cacheable String")
)
Hierarchy
- class \Drupal\Core\TypedData\TypedData implements \Drupal\Core\TypedData\TypedDataInterface, \Drupal\Component\Plugin\PluginInspectionInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\TypedData\TypedDataTrait
- class \Drupal\Core\TypedData\PrimitiveBase extends \Drupal\Core\TypedData\TypedData implements \Drupal\Core\TypedData\PrimitiveInterface
- class \Drupal\Core\TypedData\Plugin\DataType\StringData extends \Drupal\Core\TypedData\PrimitiveBase implements \Drupal\Core\TypedData\Type\StringInterface
- class \Drupal\entity_test\Plugin\DataType\ComputedTestCacheableString extends \Drupal\Core\TypedData\Plugin\DataType\StringData implements \Drupal\Core\Cache\RefinableCacheableDependencyInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait
- class \Drupal\Core\TypedData\Plugin\DataType\StringData extends \Drupal\Core\TypedData\PrimitiveBase implements \Drupal\Core\TypedData\Type\StringInterface
- class \Drupal\Core\TypedData\PrimitiveBase extends \Drupal\Core\TypedData\TypedData implements \Drupal\Core\TypedData\PrimitiveInterface
Expanded class hierarchy of ComputedTestCacheableString
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ DataType/ ComputedTestCacheableString.php, line 20
Namespace
Drupal\entity_test\Plugin\DataTypeView source
class ComputedTestCacheableString extends StringData implements RefinableCacheableDependencyInterface {
use RefinableCacheableDependencyTrait;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.