interface StringInterface

Same name in this branch
  1. 8.9.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface
Same name in other branches
  1. 9 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface
  2. 9 core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface
  3. 10 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface
  4. 10 core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface
  5. 11.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface
  6. 11.x core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface

Interface for strings.

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.

Hierarchy

Expanded class hierarchy of StringInterface

All classes that implement StringInterface

Related topics

8 files declare their use of StringInterface
ConfigSchemaTest.php in core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
Email.php in core/lib/Drupal/Core/TypedData/Plugin/DataType/Email.php
EntityFieldTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
PrimitiveTypeConstraintValidator.php in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
SchemaCheckTrait.php in core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php

... See full list

File

core/lib/Drupal/Core/TypedData/Type/StringInterface.php, line 15

Namespace

Drupal\Core\TypedData\Type
View source
interface StringInterface extends PrimitiveInterface {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.