Copied!

ContentPublicationStrategyInterface

ContentPublicationStrategyInterface.php : 21
Interface

Entry point for publishing a content version, hiding whether the publication happens synchronously (in-request) or asynchronously (queued background work).

Strategies are registered with the "ibexa.repository.content.publication_strategy" service tag and consulted in priority order; the first one supporting the current repository executes.

Methods

publicpublishVersion()

ContentPublicationStrategyInterface.php : 32
public publishVersion(VersionInfo $versionInfo[, array<int, string> $translations = Language::ALL ]) : ContentPublicationResult

Parameters

Name Type Default value Description
$versionInfo VersionInfo - -
$translations array<int, string> Language::ALL

List of language codes of translations which will be included in a published version

Return values

ContentPublicationResult

Tags
Throws
BadStateException
Throws
UnauthorizedException

publicsupports()

ContentPublicationStrategyInterface.php : 23
public supports() : bool

Return values

bool