namespace Foo;
use eZ\Publish\API\Repository\Values\Content\ContentInfo;
use eZ\Publish\API\Repository\Values\Content\Location;
For a content
function ( ContentInfo $contentInfo, array $parameters = array() )
{
Do something to render
Must return a string to display
}
For a location
function ( Location $location, array $parameters = array() )
{
Do something to render
Must return a string to display
}
Mostrar archivo
Open project: ezsystems/ezpublish-kernel
Class Usage Examples
Method | Description | |
---|---|---|
getContent ( ) : eZ\Publish\API\Repository\Values\Content\Content | Returns the Content. | |
getLocation ( ) : eZ\Publish\API\Repository\Values\Content\Location | ||
isEmbed ( ) : boolean | Is the view an embed or not. | |
setContent ( eZ\Publish\API\Repository\Values\Content\Content $content ) | ||
setIsEmbed ( boolean $value ) | Sets the value as embed / not embed. | |
setLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) |
Method | Description | |
---|---|---|
getInternalParameters ( ) |
public getContent ( ) : eZ\Publish\API\Repository\Values\Content\Content | ||
return | eZ\Publish\API\Repository\Values\Content\Content |
public getLocation ( ) : eZ\Publish\API\Repository\Values\Content\Location | ||
return | eZ\Publish\API\Repository\Values\Content\Location |
public setContent ( eZ\Publish\API\Repository\Values\Content\Content $content ) | ||
$content | eZ\Publish\API\Repository\Values\Content\Content |
public setIsEmbed ( boolean $value ) | ||
$value | boolean |
public setLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) | ||
$location | eZ\Publish\API\Repository\Values\Content\Location |