Neos\Flow\Aop\Advice\AdviceChain::proceed PHP Method

proceed() public method

An advice usually calls (but doesn't have to necessarily) this method in order to proceed with the next advice in the chain. If no advice is left in the chain, the proxy classes' method invokeJoinpoint() will finally be called.
public proceed ( Neos\Flow\Aop\JoinPointInterface &$joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point (ie. the context)
return mixed Result of the advice or the original method of the target class
    public function proceed(JoinPointInterface &$joinPoint)
    {
        $this->adviceIndex++;
        if ($this->adviceIndex < count($this->advices)) {
            $result = $this->advices[$this->adviceIndex]->invoke($joinPoint);
        } else {
            $result = $joinPoint->getProxy()->Flow_Aop_Proxy_invokeJoinpoint($joinPoint);
        }
        return $result;
    }