block.icon.php
Tags
Table of Contents
Functions
- smarty_block_icon() : string|null
- Display an icon with some alternative text.
Functions
smarty_block_icon()
Display an icon with some alternative text.
smarty_block_icon(mixed $params, mixed $text, mixed &$smarty, bool &$repeat) : string|null
This is a wrapper around CRM_Core_Page::icon().
Parameters
- $params : mixed
-
- condition: if present and falsey, return empty
- icon: the icon class to display instead of fa-check
- anything else is passed along as attributes for the icon
- $text : mixed
-
The translated text to include in the icon's title and screen-reader text.
- $smarty : mixed
- $repeat : bool
-
Repeat is true for the opening tag, false for the closing tag