public function getSlot($key)
    {
        if (isset($this->_slots[$key])) {
            if (is_string($this->_slots[$key])) {
                return $this->_slots[$key];
            }
            ob_start();
            call_user_func($this->_slots[$key][0], $this->_slots[$key][1], $this->_slots[$key][2]);
            return ob_get_clean();
        } else if ($this->_parentContext) {
            return $this->_parentContext->getSlot($key);
        }
    }
public function getSlot($key)
    {
        if (isset($this->_slots[$key])) {
            if (is_string($this->_slots[$key])) {
                return $this->_slots[$key];
            }
            ob_start();
            call_user_func($this->_slots[$key][0], $this->_slots[$key][1], $this->_slots[$key][2]);
            return ob_get_clean();
        } else if ($this->_parentContext) {
            return $this->_parentContext->getSlot($key);
        }
    }
public function getSlot ( $ key ) { if ( isset ( $ this -> _slots [ $ key ] ) ) { if ( is_string ( $ this -> _slots [ $ key ] ) ) { return $ this -> _slots [ $ key ] ; } ob_start ( ) ; call_user_func ( $ this -> _slots [ $ key ] [ 0 ] , $ this -> _slots [ $ key ] [ 1 ] , $ this -> _slots [ $ key ] [ 2 ] ) ; return ob_get_clean ( ) ; } else if ( $ this -> _parentContext ) { return $ this -> _parentContext -> getSlot ( $ key ) ; } }
Returns the content of specified filled slot.

Use echoSlot() whenever you just want to output the slot

@return string
Returns the content of specified filled slot .