CoolCMS API

UrlLatteExtension extends Extension
in package

FinalYes

Table of Contents

Methods

getFilters()  : array<string|int, mixed>
linkify()  : Html
Prints text with its web addresses as links ({@see TextLinkifier}) when `$enabled`.

Methods

getFilters()

public getFilters() : array<string|int, mixed>
Return values
array<string|int, mixed>

linkify()

Prints text with its web addresses as links ({@see TextLinkifier}) when `$enabled`.

public static linkify(mixed $value[, bool $html = false ][, bool $enabled = true ]) : Html

The input is HTML when it is an Html object (|breakLines) or when $html says so (sanitized editor HTML that would otherwise be printed with |noescape); a plain string is escaped first. Usage: {$text|breakLines|linkify: enabled: $linksAllowed}, {$editorHtml|linkify: html: true, enabled: $linksAllowed}.

Parameters
$value : mixed
$html : bool = false
$enabled : bool = true
Return values
Html
On this page

Search results