X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentity_reference_revisions%2Ftests%2Fmodules%2Fentity_composite_relationship_test%2Fsrc%2FEntity%2FEntityTestCompositeRelationship.php;fp=web%2Fmodules%2Fcontrib%2Fentity_reference_revisions%2Ftests%2Fmodules%2Fentity_composite_relationship_test%2Fsrc%2FEntity%2FEntityTestCompositeRelationship.php;h=c74765faf9b27eff1ec32fdb3dfd6fe04731b695;hp=0000000000000000000000000000000000000000;hb=f3baf763d342a5f82576890e2a8111a5aaf139dc;hpb=059867c3f96750652c80f39e44c442a58c2549ee diff --git a/web/modules/contrib/entity_reference_revisions/tests/modules/entity_composite_relationship_test/src/Entity/EntityTestCompositeRelationship.php b/web/modules/contrib/entity_reference_revisions/tests/modules/entity_composite_relationship_test/src/Entity/EntityTestCompositeRelationship.php new file mode 100644 index 000000000..c74765faf --- /dev/null +++ b/web/modules/contrib/entity_reference_revisions/tests/modules/entity_composite_relationship_test/src/Entity/EntityTestCompositeRelationship.php @@ -0,0 +1,61 @@ +setLabel(t('Parent ID')) + ->setDescription(t('The ID of the parent entity of which this entity is referenced.')); + + $fields['parent_type'] = BaseFieldDefinition::create('string') + ->setLabel(t('Parent type')) + ->setDescription(t('The entity parent type to which this entity is referenced.')); + + $fields['parent_field_name'] = BaseFieldDefinition::create('string') + ->setLabel(t('Parent field name')) + ->setDescription(t('The entity parent field name to which this entity is referenced.')); + + return $fields; + } + +}