Skip to main content

Blockquote

Helper for rendering blockquotes


Properties

allowedOptions

protected static $allowedOptions
  • This property is static.

Methods

__invoke

Generates a 'blockquote' element

public __invoke(string $content, string $footer = '', array $attributes = [], array $contentAttributes = [], array $footerAttributes = [], iterable $figureAttributes = [], bool $escape = true): string

Parameters:

ParameterTypeDescription
$contentstringThe content of the blockquote
$footerstringThe content of the footer of the blockquote. Default : empty
$attributesarrayHtml attributes of the "<blockquote>" element. Default : empty
$contentAttributesarrayHtml attributes of the "<p>" (content) element. Default : empty
$footerAttributesarrayHtml attributes of the "<footer>" (footer) element. Default : empty
$figureAttributesiterable
$escapeboolTrue espace html content '$content'. Default True

Return Value:

The blockquote XHTML.


renderContent

protected renderContent(string $content, \TwbsHelper\View\HtmlAttributesSet $contentAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$contentstring
$contentAttributes\TwbsHelper\View\HtmlAttributesSet
$escapebool

renderFooter

protected renderFooter(string $footer, \TwbsHelper\View\HtmlAttributesSet $footerAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$footerstring
$footerAttributes\TwbsHelper\View\HtmlAttributesSet
$escapebool

renderContainerWithFigure

protected renderContainerWithFigure(string $blockquoteContent, string $footerContent, \TwbsHelper\View\HtmlAttributesSet $attributes, \TwbsHelper\View\HtmlAttributesSet $figureAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$blockquoteContentstring
$footerContentstring
$attributes\TwbsHelper\View\HtmlAttributesSet
$figureAttributes\TwbsHelper\View\HtmlAttributesSet
$escapebool

renderContainerWithoutFigure

protected renderContainerWithoutFigure(string $blockquoteContent, string $footerContent, \TwbsHelper\View\HtmlAttributesSet $attributes, bool $escape): string

Parameters:

ParameterTypeDescription
$blockquoteContentstring
$footerContentstring
$attributes\TwbsHelper\View\HtmlAttributesSet
$escapebool

renderContainer

protected renderContainer(string $content, \TwbsHelper\View\HtmlAttributesSet $attributes, bool $escape): mixed

Parameters:

ParameterTypeDescription
$contentstring
$attributes\TwbsHelper\View\HtmlAttributesSet
$escapebool