ContentTypeProxyExtension
trait ContentTypeProxyExtension
ContentTypeProxyExtension trait.
This trait is an extension to the ContentType 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 a content type.
Properties
Client | $client |
Methods
Returns the ID associated to the current space.
Returns the ID associated to the current environment.
Returns the ID associated to the current content type.
Returns a ContentTypeSnapshot resource.
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
Returns an EditorInterface resource.
Details
at line 36
abstract protected string
getSpaceId()
Returns the ID associated to the current space.
at line 43
abstract protected string
getEnvironmentId()
Returns the ID associated to the current environment.
at line 50
abstract protected string
getContentTypeId()
Returns the ID associated to the current content type.
at line 57
getSnapshot(string $snapshotId)
Returns a ContentTypeSnapshot resource.
at line 72
getSnapshots(Query $query = null)
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
at line 87
getEditorInterface()
Returns an EditorInterface resource.