public function getFromRegistry($controllerString)
    {
        if (!is_string($controllerString)) {
            return null;
        }

        foreach ($this->registry as $viewBuilder) {
            if ($viewBuilder->matches($controllerString)) {
                return $viewBuilder;
            }
        }

        return null;
    }
public function getFromRegistry($controllerString)
    {
        if (!is_string($controllerString)) {
            return null;
        }

        foreach ($this->registry as $viewBuilder) {
            if ($viewBuilder->matches($controllerString)) {
                return $viewBuilder;
            }
        }

        return null;
    }
public function getFromRegistry ( $ controllerString ) { if ( ! is_string ( $ controllerString ) ) { return null ; } foreach ( $ this -> registry as $ viewBuilder ) { if ( $ viewBuilder -> matches ( $ controllerString ) ) { return $ viewBuilder ; } } return null ; }
Returns the ViewBuilder that matches the given controller string.

@param string $controllerString A controller string to match against. Example: ez_content:viewAction.

@return \eZ\Publish\Core\MVC\Symfony\View\Builder\ViewBuilder|null
Returns the ViewBuilder that matches the given controller string .