X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fentity_test%2Fsrc%2FEntity%2FEntityTestWithBundle.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fentity_test%2Fsrc%2FEntity%2FEntityTestWithBundle.php;h=c668bd3ee80bc655d1243c423c15c6ba9ac5b299;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestWithBundle.php b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestWithBundle.php new file mode 100644 index 000000000..c668bd3ee --- /dev/null +++ b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestWithBundle.php @@ -0,0 +1,72 @@ +setLabel(t('Name')) + ->setDescription(t('The name of the test entity.')) + ->setTranslatable(TRUE) + ->setSetting('max_length', 32) + ->setDisplayOptions('view', [ + 'label' => 'hidden', + 'type' => 'string', + 'weight' => -5, + ]) + ->setDisplayOptions('form', [ + 'type' => 'string_textfield', + 'weight' => -5, + ]); + return $fields; + } + +}