eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent::getContentView PHP Method

getContentView() public method

public getContentView ( ) : eZ\Publish\Core\MVC\Symfony\View\View
return eZ\Publish\Core\MVC\Symfony\View\View
    public function getContentView()
    {
        return $this->contentView;
    }

Usage Example

 public function onPreContentView( PreContentViewEvent $event )
 {
     $contentView = $event->getContentView();
     $contentView->addParameters(
         array(
             'foo' => 'bar',
             'osTypes' => array( 'osx', 'linux', 'win' )
         )
     );
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent::getContentView