Skip to main content

Abbreviation

Helper for rendering abbreviations


Methods

__invoke

Generates an 'abbreviation' element

public __invoke(string $content, string $title = '', bool $initialism = false, array $attributes = [], bool $escape = true): string

Parameters:

ParameterTypeDescription
$contentstringThe content of the abbreviation
$titlestringThe title of the abbreviation. Default : empty
$initialismboolTrue set the class 'initialism' to an abbreviation for a slightly smaller font-size.
Default : false
$attributesarrayHtml attributes of the "<abbr>" element
$escapeboolTrue espace html content '$content'. Default True

Return Value:

The abbreviation XHTML.