core/web/Element.php
public function getElement($name, array $params = [])
    {
        if (!array_key_exists($name, $this->_elements)) {
            throw new Exception("The requested element '$name' does not exist in the list. You may register the element first with `addElement(name, closure)`.");
        }
    
        return call_user_func_array($this->_elements[$name], $params);
    }
public function getElement($name, array $params = [])
    {
        if (!array_key_exists($name, $this->_elements)) {
            throw new Exception("The requested element '$name' does not exist in the list. You may register the element first with `addElement(name, closure)`.");
        }
    
        return call_user_func_array($this->_elements[$name], $params);
    }
public function getElement ( $ name , array $ params = [ ] ) { if ( ! array_key_exists ( $ name , $ this -> _elements ) ) { throw new Exception ( "The requested element '$name' does not exist in the list. You may register the element first with `addElement(name, closure)`." ) ; } return call_user_func_array ( $ this -> _elements [ $ name ] , $ params ) ; }
Renders the closure for the given name and returns the content.

@param string $name   The name of the elemente to execute.
@param array  $params The params to pass to the closure methode.
@return mixed The return value of the executed closure function.
@throws Exception
Renders the closure for the given name and returns the content .