FOF30\Toolbar\Toolbar::isDataView PHP Method

isDataView() public method

Is the view we are rendering the toolbar for a data-aware view?
public isDataView ( ) : boolean
return boolean
    public function isDataView()
    {
        if (is_null($this->isDataView)) {
            $this->isDataView = false;
            $controller = $this->container->dispatcher->getController();
            $view = null;
            if (is_object($controller) && $controller instanceof Controller) {
                $view = $controller->getView();
            }
            if (is_object($view) && $view instanceof View) {
                $this->isDataView = $view instanceof DataViewInterface;
            }
        }
        return $this->isDataView;
    }