eZPublishCommunityProject  2013.6
eZ\Publish\Core\MVC\Symfony\View\Provider\Content Interface Reference

Interface for content view providers. More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\View\Provider\Content:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\View\Provider\Content:

Public Member Functions

 getView (ContentInfo $contentInfo, $viewType)
 Returns a ContentView object corresponding to $contentInfo, or null if not applicable. More...
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\View\Provider\ViewProviderInterface
 match (ViewProviderMatcher $matcher, ValueObject $valueObject)
 Checks if $valueObject matches the $matcher's rules. More...
 

Detailed Description

Interface for content view providers.

Content view providers select a view for a given content, depending on its own internal rules.

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\View\Provider\Content::getView ( ContentInfo  $contentInfo,
  $viewType 
)

Returns a ContentView object corresponding to $contentInfo, or null if not applicable.

Returns a ContentView object corresponding to $contentInfo, or void if not applicable.

Parameters
\eZ\Publish\API\Repository\Values\Content\ContentInfo$contentInfo
string$viewTypeVariation of display for your content
Returns
|null
Parameters
\eZ\Publish\API\Repository\Values\Content\ContentInfo$contentInfo
string$viewTypeVariation of display for your content
Returns
|void

Implemented in eZ\Publish\Core\MVC\Symfony\View\Provider\Content\Configured.


The documentation for this interface was generated from the following files: