lib/View/ViewBuilder.php
private function getViewProvider($value): ViewProviderInterface
    {
        foreach ($this->viewProviders as $viewProvider) {
            if ($viewProvider->supports($value)) {
                return $viewProvider;
            }
        }

        throw ViewProviderException::noViewProvider(get_class($value));
    }
private function getViewProvider($value): ViewProviderInterface
    {
        foreach ($this->viewProviders as $viewProvider) {
            if ($viewProvider->supports($value)) {
                return $viewProvider;
            }
        }

        throw ViewProviderException::noViewProvider(get_class($value));
    }
private function getViewProvider ( $ value ) : ViewProviderInterface { foreach ( $ this -> viewProviders as $ viewProvider ) { if ( $ viewProvider -> supports ( $ value ) ) { return $ viewProvider ; } } throw ViewProviderException :: noViewProvider ( get_class ( $ value ) ) ; }
Returns the view provider that supports the given value.

@param mixed $value

@return \Netgen\BlockManager\View\Provider\ViewProviderInterface
Returns the view provider that supports the given value .