src/ViewHelpers.php
public function getHelper($name, array $options = [])
    {
        $helper = $this->get($name);
        if (! empty($options) && is_callable([$helper, 'setOptions'])) {
            $helper->setOptions($options);
        }

        return $helper;
    }
public function getHelper($name, array $options = [])
    {
        $helper = $this->get($name);
        if (! empty($options) && is_callable([$helper, 'setOptions'])) {
            $helper->setOptions($options);
        }

        return $helper;
    }
public function getHelper ( $ name , array $ options = [ ] ) { $ helper = $ this -> get ( $ name ) ; if ( ! empty ( $ options ) && is_callable ( [ $ helper , 'setOptions' ] ) ) { $ helper -> setOptions ( $ options ) ; } return $ helper ; }
Gets the helper and sets its options.

@param string $name    The helper name
@param array  $options Optional; the helper options

@return mixed The requested helper
Gets the helper and sets its options .