mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 21:04:25 +02:00
View: Add string helpers
This commit is contained in:
parent
a0a3241d1c
commit
a1a36301fe
8
library/Icinga/Web/View/helpers/string.php
Normal file
8
library/Icinga/Web/View/helpers/string.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
namespace Icinga\Web\View;
|
||||||
|
|
||||||
|
use Icinga\Util\String;
|
||||||
|
|
||||||
|
$this->addHelperFunction('ellipsis', function ($string, $maxLength, $ellipsis = '...') {
|
||||||
|
return String::ellipsis($string, $maxLength, $ellipsis);
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user