Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Merge requests
!356
Draft:
#3469235
"Page data form"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft:
#3469235
"Page data form"
issue/experience_builder-3469235:3469235-page-data-form
into
0.x
Overview
0
Commits
16
Pipelines
2
Changes
20
Closed
Ben Mullins
requested to merge
issue/experience_builder-3469235:3469235-page-data-form
into
0.x
7 months ago
Overview
0
Commits
16
Pipelines
2
Changes
20
Expand
Closes
#3469235
0
0
Merge request reports
Compare
0.x
version 1
b8ce1d90
7 months ago
0.x (base)
and
latest version
latest version
ba407eb9
16 commits,
7 months ago
version 1
b8ce1d90
15 commits,
7 months ago
20 files
+
816
−
242
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
20
Search (e.g. *.vue) (Ctrl+P)
src/JsonSchemaInterpreter/JsonSchemaStringFormat.php
+
13
−
1
Options
@@ -11,6 +11,7 @@ use Drupal\experience_builder\PropExpressions\StructuredData\FieldTypePropExpres
use
Drupal\experience_builder
\PropShape\PropShape
;
use
Drupal\experience_builder
\PropShape\StorablePropShape
;
use
Drupal\experience_builder
\ShapeMatcher\DataTypeShapeRequirement
;
use
Drupal\link\LinkItemInterface
;
use
Symfony\Component\Validator\Constraints\Ip
;
// phpcs:disable Drupal.Files.LineLength.TooLong
@@ -161,8 +162,19 @@ enum JsonSchemaStringFormat: string {
// @see \Drupal\Core\Field\Plugin\Field\FieldType\UuidItem
static
::
UUID
=>
NULL
,
// TRICKY: Drupal core does not support RFC3987 aka IRIs, but it's a superset of RFC3986.
// TRICKY: the `uri` field type only supports absolute
// @see \Drupal\Core\Field\Plugin\Field\FieldType\UriItem
static
::
URI_REFERENCE
,
static
::
URI
,
static
::
IRI_REFERENCE
,
static
::
IRI
=>
new
StorablePropShape
(
shape
:
$shape
,
fieldTypeProp
:
new
FieldTypePropExpression
(
'uri'
,
'value'
),
fieldWidget
:
'uri'
),
// @see \Drupal\link\Plugin\Field\FieldType\LinkItem::defaultFieldSettings()
static
::
URI_REFERENCE
,
static
::
URI
,
static
::
IRI_REFERENCE
,
static
::
IRI
=>
new
StorablePropShape
(
shape
:
$shape
,
fieldTypeProp
:
new
FieldTypePropExpression
(
'link'
,
'uri'
),
// @see \Drupal\link\Plugin\Field\FieldType\LinkItem::defaultFieldSettings()
fieldInstanceSettings
:
[
// This shape only needs the URI, not a title.
'title'
=>
DRUPAL_DISABLED
,
],
fieldWidget
:
'link_default'
,
),
// Built-in formats: URI template.
// @see https://json-schema.org/understanding-json-schema/reference/string#uri-template
Loading