src/Charcoal/Admin/Ui/ActionContainerTrait.php
protected function getActionRenderer()
    {
        $obj = null;
        if ($this instanceof FormSidebarInterface) {
            if ($this->form()) {
                $obj = $this->form()->obj();
            }
        }

        if ($this instanceof ObjectContainerInterface) {
            $obj = $this->obj();
        }

        if ($this instanceof CollectionContainerInterface) {
            $obj = isset($this->currentObj) ? $this->currentObj : $this->proto();
        }

        return $obj instanceof ViewableInterface ? $obj : null;
    }
protected function getActionRenderer()
    {
        $obj = null;
        if ($this instanceof FormSidebarInterface) {
            if ($this->form()) {
                $obj = $this->form()->obj();
            }
        }

        if ($this instanceof ObjectContainerInterface) {
            $obj = $this->obj();
        }

        if ($this instanceof CollectionContainerInterface) {
            $obj = isset($this->currentObj) ? $this->currentObj : $this->proto();
        }

        return $obj instanceof ViewableInterface ? $obj : null;
    }
protected function getActionRenderer ( ) { $ obj = null ; if ( $ this instanceof FormSidebarInterface ) { if ( $ this -> form ( ) ) { $ obj = $ this -> form ( ) -> obj ( ) ; } } if ( $ this instanceof ObjectContainerInterface ) { $ obj = $ this -> obj ( ) ; } if ( $ this instanceof CollectionContainerInterface ) { $ obj = isset ( $ this -> currentObj ) ? $ this -> currentObj : $ this -> proto ( ) ; } return $ obj instanceof ViewableInterface ? $ obj : null ; }
Fetch a viewable instance to process an action's renderables.

@return ViewableInterface|null
Fetch a viewable instance to process an action s renderables .