View: Add string helpers
This commit is contained in:
parent
a0a3241d1c
commit
a1a36301fe
|
@ -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…
Reference in New Issue