X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fpathauto%2Ftests%2Fmodules%2Fpathauto_string_id_test%2Fsrc%2FEntity%2FPathautoStringIdTest.php;fp=web%2Fmodules%2Fcontrib%2Fpathauto%2Ftests%2Fmodules%2Fpathauto_string_id_test%2Fsrc%2FEntity%2FPathautoStringIdTest.php;h=afaa157f48f243481f156c5a5f3cbd1f76a153f8;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/modules/contrib/pathauto/tests/modules/pathauto_string_id_test/src/Entity/PathautoStringIdTest.php b/web/modules/contrib/pathauto/tests/modules/pathauto_string_id_test/src/Entity/PathautoStringIdTest.php new file mode 100644 index 000000000..afaa157f4 --- /dev/null +++ b/web/modules/contrib/pathauto/tests/modules/pathauto_string_id_test/src/Entity/PathautoStringIdTest.php @@ -0,0 +1,50 @@ +setLabel('ID') + ->setReadOnly(TRUE) + // A bigger value will not be allowed to build the index. + ->setSetting('max_length', 191); + $fields['name'] = BaseFieldDefinition::create('string') + ->setLabel('Name'); + $fields['path'] = BaseFieldDefinition::create('path') + ->setLabel('Path') + ->setComputed(TRUE); + + return $fields; + } + +}