PHP 클래스 Contao\CoreBundle\EventListener\ToggleViewListener

상속: use trait Contao\CoreBundle\Framework\ScopeAwareTrait
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework ) Constructor.
onKernelRequest ( GetResponseEvent $event ) Toggles the TL_VIEW cookie and redirects back to the referring page.

비공개 메소드들

메소드 설명
getCookie ( string $value, string $basePath ) : Cookie Generates the TL_VIEW cookie based on the toggle_view value.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework )
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface

onKernelRequest() 공개 메소드

Toggles the TL_VIEW cookie and redirects back to the referring page.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent