Method | Description | |
---|---|---|
__construct ( Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry, Sulu\Component\DocumentManager\PathSegmentRegistry $pathSegmentRegistry, Sulu\Component\DocumentManager\NamespaceRegistry $namespaceRegistry, Sulu\Component\DocumentManager\ProxyFactory $proxyFactory, Sulu\Component\DocumentManager\MetadataFactoryInterface $metadataFactory, Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface $structureFactory, |
||
getConcreteLocales ( Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior $document ) : array | Return locales which are not shadows. | |
getContentPath ( Sulu\Component\DocumentManager\Behavior\Mapping\PathBehavior $document ) : string | Return the path of the document in relation to the content root. | |
getLocale ( $document ) : string | null | Return the locale for the given document or null if the document is not managed. | |
getLocales ( object $document ) : array | Return the concrete localizations for the given document. | |
getLocalizationState ( object $document ) : string | Return the localization state of the node. | |
getLocalizedUrlsForPage ( |
Returns urls for given page for all locales in webspace. | |
getMetadata ( object $document ) : Sulu\Component\DocumentManager\Metadata | Return the (DocumentManager) Metadata for the given document. | |
getOriginalLocale ( object $document ) : string | Return the original (requested) locale for this document before any fallback logic was applied to it. | |
getPublishedLocales ( Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior $document ) : array | Return the published locales for the given document. | |
getShadowLocales ( Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior $document ) : array | Return the enabled shadow locales for the given document. | |
getStructureMetadata ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document ) : |
Return the structure for the given StructureBehavior implementing document. | |
getWebspace ( object $document ) : string | Return the webspace name for the given document. |
Method | Description | |
---|---|---|
extractWebspaceFromPath ( string $path ) : string | Extracts webspace key from given path. |
public __construct ( Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry, Sulu\Component\DocumentManager\PathSegmentRegistry $pathSegmentRegistry, Sulu\Component\DocumentManager\NamespaceRegistry $namespaceRegistry, Sulu\Component\DocumentManager\ProxyFactory $proxyFactory, Sulu\Component\DocumentManager\MetadataFactoryInterface $metadataFactory, Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface $structureFactory, |
||
$documentRegistry | Sulu\Component\DocumentManager\DocumentRegistry | |
$pathSegmentRegistry | Sulu\Component\DocumentManager\PathSegmentRegistry | |
$namespaceRegistry | Sulu\Component\DocumentManager\NamespaceRegistry | |
$proxyFactory | Sulu\Component\DocumentManager\ProxyFactory | |
$metadataFactory | Sulu\Component\DocumentManager\MetadataFactoryInterface | |
$structureFactory | Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface | |
$encoder | ||
$webspaceManager | Sulu\Component\Webspace\Manager\WebspaceManagerInterface |
public getConcreteLocales ( Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior $document ) : array | ||
$document | Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior | |
return | array |
public getContentPath ( Sulu\Component\DocumentManager\Behavior\Mapping\PathBehavior $document ) : string | ||
$document | Sulu\Component\DocumentManager\Behavior\Mapping\PathBehavior | |
return | string |
public getLocales ( object $document ) : array | ||
$document | object | |
return | array |
public getLocalizationState ( object $document ) : string | ||
$document | object | |
return | string |
public getLocalizedUrlsForPage ( |
||
$page | ||
return | array |
public getMetadata ( object $document ) : Sulu\Component\DocumentManager\Metadata | ||
$document | object | |
return | Sulu\Component\DocumentManager\Metadata |
public getOriginalLocale ( object $document ) : string | ||
$document | object | |
return | string |
public getPublishedLocales ( Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior $document ) : array | ||
$document | Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior | |
return | array |
public getShadowLocales ( Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior $document ) : array | ||
$document | Sulu\Component\Content\Document\Behavior\ShadowLocaleBehavior | |
return | array |
public getStructureMetadata ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document ) : |
||
$document | Sulu\Component\Content\Document\Behavior\StructureBehavior | |
return |
public getWebspace ( object $document ) : string | ||
$document | object | |
return | string |