trait EntryProxyExtension

EntryProxyExtension trait.

This trait is an extension to the Entry resource class. It is built here and included as a trait to better separate concerns. This trait provides shortcuts for fetching resources that belong to an entry.

Properties

Client $client

Methods

string
getSpaceId()

Returns the ID associated to the current space.

string
getEnvironmentId()

Returns the ID associated to the current environment.

string
getEntryId()

Returns the ID associated to the current entry.

getSnapshot(string $snapshotId)

Returns a EntrySnapshot resource.

ResourceArray
getSnapshots(Query $query = null)

Returns a ResourceArray object which contains EntrySnapshot resources.

Details

at line 34
abstract protected string getSpaceId()

Returns the ID associated to the current space.

Return Value

string

at line 41
abstract protected string getEnvironmentId()

Returns the ID associated to the current environment.

Return Value

string

at line 48
abstract protected string getEntryId()

Returns the ID associated to the current entry.

Return Value

string

at line 59
EntrySnapshot getSnapshot(string $snapshotId)

Returns a EntrySnapshot resource.

Parameters

string $snapshotId

Return Value

EntrySnapshot

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/snapshots/entry-snapshot

at line 78
ResourceArray getSnapshots(Query $query = null)

Returns a ResourceArray object which contains EntrySnapshot resources.

Parameters

Query $query

Return Value

ResourceArray

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/snapshots/entry-snapshots-collection