Link
class Link implements JsonSerializable
Link class.
A Link in Contentful represents a reference to any kind of resource.
Methods
__construct(string $linkId, string $linkType)
Link constructor.
string
getId()
Get the ID of the referenced resource.
string
getLinkType()
Get the type of the Link.
jsonSerialize()
{@inheritdoc}
Details
at line 35
__construct(string $linkId, string $linkType)
Link constructor.
at line 46
string
getId()
Get the ID of the referenced resource.
at line 60
string
getLinkType()
Get the type of the Link.
Possible values are: - Asset - Entry
at line 68
jsonSerialize()
{@inheritdoc}