X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fpath%2Fsrc%2FPlugin%2FField%2FFieldType%2FPathItem.php;fp=web%2Fcore%2Fmodules%2Fpath%2Fsrc%2FPlugin%2FField%2FFieldType%2FPathItem.php;h=cd62bea662e6121be96bddaff95c7ae21a5c7c9b;hp=65cb14bf2b85cf79353fd4ef593b95141402e338;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/path/src/Plugin/Field/FieldType/PathItem.php b/web/core/modules/path/src/Plugin/Field/FieldType/PathItem.php index 65cb14bf2..cd62bea66 100644 --- a/web/core/modules/path/src/Plugin/Field/FieldType/PathItem.php +++ b/web/core/modules/path/src/Plugin/Field/FieldType/PathItem.php @@ -89,7 +89,7 @@ class PathItem extends FieldItemBase { */ public static function generateSampleValue(FieldDefinitionInterface $field_definition) { $random = new Random(); - $values['alias'] = str_replace(' ', '-', strtolower($random->sentences(3))); + $values['alias'] = '/' . str_replace(' ', '-', strtolower($random->sentences(3))); return $values; }