PHP 클래스 eZ\Publish\Core\MVC\Symfony\EventListener\LanguageSwitchListener

Will be triggered when generating a RouteReference.
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( TranslationHelper $translationHelper )
getSubscribedEvents ( )
onRouteReferenceGeneration ( RouteReferenceGenerationEvent $event ) If "language" parameter is present, will try to get corresponding SiteAccess for translation.

메소드 상세

__construct() 공개 메소드

public __construct ( TranslationHelper $translationHelper )
$translationHelper eZ\Publish\Core\Helper\TranslationHelper

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onRouteReferenceGeneration() 공개 메소드

If found, it will add "siteaccess" parameter to the RouteReference, to trigger SiteAccess switch when generating the final link.
또한 보기: eZ\Publish\Core\MVC\Symfony\Routing\Generator::generate()
또한 보기: eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator::doGenerate()
public onRouteReferenceGeneration ( RouteReferenceGenerationEvent $event )
$event eZ\Publish\Core\MVC\Symfony\Event\RouteReferenceGenerationEvent