ResourceInterface
interface ResourceInterface implements JsonSerializable
ResourceInterface.
Represents a resource managed by Contentful.
Methods
getSystemProperties()
Returns the resource's system properties, defined in the object "sys" in Contentful's responses.
string
getId()
Shortcut for retrieving the resource ID from the system properties object.
string
getType()
Shortcut for retrieving the resource type from the system properties object.
Details
at line 27
SystemPropertiesInterface
getSystemProperties()
Returns the resource's system properties, defined in the object "sys" in Contentful's responses.
at line 34
Link
asLink()
Creates a Link representation of the current resource.
at line 42
string
getId()
Shortcut for retrieving the resource ID from the system properties object.
at line 50
string
getType()
Shortcut for retrieving the resource type from the system properties object.