class Uri

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php \Drupal\Core\TypedData\Plugin\DataType\Uri
  2. 10 core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php \Drupal\Core\TypedData\Plugin\DataType\Uri
  3. 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php \Drupal\Core\TypedData\Plugin\DataType\Uri

The URI data type.

The plain value of a URI is an absolute URI represented as PHP string.

Plugin annotation


@DataType(
  id = "uri",
  label = @Translation("URI")
)

Hierarchy

Expanded class hierarchy of Uri

1 file declares its use of Uri
PrimitiveTypeConstraintValidatorTest.php in core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidatorTest.php
53 string references to 'Uri'
CommentAttributesTest::testCommentReplyOfRdfaMarkup in core/modules/rdf/tests/src/Functional/CommentAttributesTest.php
Tests RDF comment replies.
CommentAttributesTest::_testBasicCommentRdfaMarkup in core/modules/rdf/tests/src/Functional/CommentAttributesTest.php
Helper function for testCommentRdfaMarkup().
ContentEntityTest::testFileSource in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
Tests file source plugin.
core.data_types.schema.yml in core/config/schema/core.data_types.schema.yml
core/config/schema/core.data_types.schema.yml
core.data_types.schema.yml in core/config/schema/core.data_types.schema.yml
core/config/schema/core.data_types.schema.yml

... See full list

File

core/lib/Drupal/Core/TypedData/Plugin/DataType/Uri.php, line 17

Namespace

Drupal\Core\TypedData\Plugin\DataType
View source
class Uri extends StringData implements UriInterface {

}

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