Class

eZ\Publish\Core\MVC\Symfony\FieldType\RichText\Renderer

class Renderer implements RendererInterface

Symfony implementation of RichText field type embed renderer.

Constants

RESOURCE_TYPE_CONTENT

RESOURCE_TYPE_LOCATION

Methods

__construct(Repository $repository, AuthorizationCheckerInterface $authorizationChecker, ConfigResolverInterface $configResolver, EngineInterface $templateEngine, string $tagConfigurationNamespace, string $embedConfigurationNamespace, LoggerInterface $logger = null, array $customTagsConfiguration = array())

string renderTag(string $name, array $parameters, bool $isInline)

Renders template tag.

string renderContentEmbed(int|string $contentId, string $viewType, array $parameters, bool $isInline)

Renders Content embed.

string renderLocationEmbed(int|string $locationId, string $viewType, array $parameters, bool $isInline)

Renders Location embed.

Details

at line 82
public __construct(Repository $repository, AuthorizationCheckerInterface $authorizationChecker, ConfigResolverInterface $configResolver, EngineInterface $templateEngine, string $tagConfigurationNamespace, string $embedConfigurationNamespace, LoggerInterface $logger = null, array $customTagsConfiguration = array())

Parameters

Repository $repository
AuthorizationCheckerInterface $authorizationChecker
ConfigResolverInterface $configResolver
EngineInterface $templateEngine
string $tagConfigurationNamespace
string $embedConfigurationNamespace
LoggerInterface $logger
array $customTagsConfiguration

at line 102
public string renderTag(string $name, array $parameters, bool $isInline)

Renders template tag.

Parameters

string $name
array $parameters
bool $isInline

Return Value

string

at line 129
public string renderContentEmbed(int|string $contentId, string $viewType, array $parameters, bool $isInline)

Renders Content embed.

Parameters

int|string $contentId
string $viewType
array $parameters
bool $isInline

Return Value

string

at line 201
public string renderLocationEmbed(int|string $locationId, string $viewType, array $parameters, bool $isInline)

Renders Location embed.

Parameters

int|string $locationId
string $viewType
array $parameters
bool $isInline

Return Value

string