Bootstrap\View\Helper\BootstrapTrait::_easyIcon PHP Метод

_easyIcon() защищенный Метод

This method will the function $callback with the specified argument ($title and $options) after applying a filter on them.
protected _easyIcon ( $callback, $title, $options ) : Whatever
$callback The method to call.
$title The first argument ($title).
$options The second argument ($options).
Результат Whatever might be returned by $callback. Note: Currently this method only works for function that take two arguments ($title and $options).
    protected function _easyIcon($callback, $title, $options)
    {
        $title = $this->_makeIcon($title, $converted);
        if ($converted) {
            $options += ['escape' => false];
        }
        return call_user_func($callback, $title, $options);
    }