You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Domain/Value/Link.php
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
publicUuid$uuid;
27
27
public ?Id$parentId;
28
28
publicstring$name;
29
+
public ?string$fullSlug;
29
30
publicstring$slug;
30
31
public ?string$path;
31
32
publicstring$realPath;
@@ -66,6 +67,15 @@ public function __construct(array $values)
66
67
Assert::keyExists($values, 'name');
67
68
$this->name = TrimmedNonEmptyString::fromString($values['name'], 'The value of the "name" key must be a non-empty, trimmed string. Got: %s')->toString();
68
69
70
+
// This field is only set when using the stories api with resolve_links flag.
71
+
$fullSlug = null;
72
+
73
+
if (\array_key_exists('full_slug', $values) && null !== $values['full_slug']) {
74
+
$fullSlug = TrimmedNonEmptyString::fromString($values['full_slug'], 'The value of the "full_slug" key must be a non-empty, trimmed string. Got: %s')->toString();
75
+
}
76
+
77
+
$this->fullSlug = $fullSlug;
78
+
69
79
Assert::keyExists($values, 'slug');
70
80
$this->slug = TrimmedNonEmptyString::fromString($values['slug'], 'The value of the "slug" key must be a non-empty, trimmed string. Got: %s')->toString();
71
81
@@ -130,7 +140,7 @@ public function isStory(): bool
0 commit comments