eZ\Publish\Core\MVC\Symfony\FieldType\RichText\Renderer::renderTag PHP Method

renderTag() public method

public renderTag ( $name, array $parameters, $isInline )
$parameters array
    public function renderTag($name, array $parameters, $isInline)
    {
        $templateName = $this->getTagTemplateName($name, $isInline);
        if ($templateName === null) {
            if (isset($this->logger)) {
                $this->logger->error("Could not render template tag '{$name}': no template configured");
            }
            return null;
        }
        if (!$this->templateEngine->exists($templateName)) {
            if (isset($this->logger)) {
                $this->logger->error("Could not render template tag '{$name}': template '{$templateName}' does not exists");
            }
            return null;
        }
        return $this->render($templateName, $parameters);
    }