PHP Class Sulu\Component\Content\Document\Subscriber\FallbackLocalizationSubscriber

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder, DocumentInspector $inspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry, Sulu\Component\Content\Compat\LocalizationFinderInterface $localizationFinder )
getAvailableLocalization ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document, string $locale ) : string Return available localizations.
getSubscribedEvents ( )
handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event )

Method Details

__construct() public method

public __construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder, DocumentInspector $inspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry, Sulu\Component\Content\Compat\LocalizationFinderInterface $localizationFinder )
$encoder Sulu\Component\DocumentManager\PropertyEncoder
$inspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$documentRegistry Sulu\Component\DocumentManager\DocumentRegistry
$localizationFinder Sulu\Component\Content\Compat\LocalizationFinderInterface

getAvailableLocalization() public method

Return available localizations.
public getAvailableLocalization ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document, string $locale ) : string
$document Sulu\Component\Content\Document\Behavior\StructureBehavior
$locale string
return string

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

handleHydrate() public method

public handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event )
$event Sulu\Component\DocumentManager\Event\HydrateEvent