EnvironmentExtension
trait EnvironmentExtension
EnvironmentExtension trait.
This extension is supposed to be applied to Client class which provides a fetchResource
method.
Traits
Methods
Returns an Asset resource.
Returns a ResourceArray object which contains Asset resources.
No description
Returns a ContentTypeSnapshot resource.
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
Returns an EditorInterface resource.
Returns a ContentType resource.
Returns a ResourceArray object which contains ContentType resources.
Returns a published ContentType resource.
Returns a ResourceArray object which contains published ContentType resources.
Returns an EntrySnapshot resource.
Returns a ResourceArray object which contains EntrySnapshot resources.
Returns an Entry resource.
Returns a ResourceArray object which contains Entry resources.
Returns an Extension resource.
Returns a ResourceArray object containing Extension resources.
Returns a Locale resource.
Returns a ResourceArray object containing Locale resources.
Returns a proxy to an environment resource.
Returns an Environment resource.
Returns a ResourceArray object which contains Environment resources.
Details
in AssetExtension at line 33
getAsset(string $spaceId, string $environmentId, string $assetId)
Returns an Asset resource.
in AssetExtension at line 47
getAssets(string $spaceId, string $environmentId, Query $query = null)
Returns a ResourceArray object which contains Asset resources.
at line 27
ResourceInterface|ResourceArray
fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)
in ContentTypeSnapshotExtension at line 33
getContentTypeSnapshot(string $spaceId, string $environmentId, string $contentTypeId, string $snapshotId)
Returns a ContentTypeSnapshot resource.
in ContentTypeSnapshotExtension at line 48
getContentTypeSnapshots(string $spaceId, string $environmentId, string $contentTypeId, Query $query = null)
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
in EditorInterfaceExtension at line 33
getEditorInterface(string $spaceId, string $environmentId, string $contentTypeId)
Returns an EditorInterface resource.
in ContentTypeExtension at line 37
getContentType(string $spaceId, string $environmentId, string $contentTypeId)
Returns a ContentType resource.
in ContentTypeExtension at line 51
getContentTypes(string $spaceId, string $environmentId, Query $query = null)
Returns a ResourceArray object which contains ContentType resources.
in ContentTypeExtension at line 64
getPublishedContentType(string $spaceId, string $environmentId, string $contentTypeId)
Returns a published ContentType resource.
in ContentTypeExtension at line 78
getPublishedContentTypes(string $spaceId, string $environmentId, Query $query = null)
Returns a ResourceArray object which contains published ContentType resources.
in EntrySnapshotExtension at line 33
getEntrySnapshot(string $spaceId, string $environmentId, string $entryId, string $snapshotId)
Returns an EntrySnapshot resource.
in EntrySnapshotExtension at line 48
getEntrySnapshots(string $spaceId, string $environmentId, string $entryId, Query $query = null)
Returns a ResourceArray object which contains EntrySnapshot resources.
in EntryExtension at line 35
getEntry(string $spaceId, string $environmentId, string $entryId)
Returns an Entry resource.
in EntryExtension at line 49
getEntries(string $spaceId, string $environmentId, Query $query = null)
Returns a ResourceArray object which contains Entry resources.
in ExtensionExtension at line 33
getExtension(string $spaceId, string $environmentId, string $extensionId)
Returns an Extension resource.
in ExtensionExtension at line 47
getExtensions(string $spaceId, string $environmentId)
Returns a ResourceArray object containing Extension resources.
in LocaleExtension at line 33
getLocale(string $spaceId, string $environmentId, string $localeId)
Returns a Locale resource.
in LocaleExtension at line 47
getLocales(string $spaceId, string $environmentId)
Returns a ResourceArray object containing Locale resources.
at line 39
getEnvironmentProxy(string $spaceId, string $environmentId = 'master')
Returns a proxy to an environment resource.
Useful for all environment-scoped operations.
at line 49
getEnvironment(string $spaceId, string $environmentId)
Returns an Environment resource.
at line 62
getEnvironments(string $spaceId, Query $query = null)
Returns a ResourceArray object which contains Environment resources.