BaseEventTypeController::renderPartial PHP Method

renderPartial() public method

Extend the parent method to support inheritance of modules (and rendering the element views from the parent module).
public renderPartial ( string $view, null $data = null, boolean $return = false, boolean $processOutput = false ) : string
$view string
$data null
$return boolean
$processOutput boolean
return string
    public function renderPartial($view, $data = null, $return = false, $processOutput = false)
    {
        if ($this->getViewFile($view) === false) {
            foreach ($this->getModule()->getModuleInheritanceList() as $mod) {
                // assuming that any inheritance maintains the controller name here.
                $view_path = implode('.', array($mod->id, 'views', $this->getControllerPrefix(), $view));
                if ($this->getViewFile($view_path)) {
                    $view = $view_path;
                    break;
                }
            }
        }
        return parent::renderPartial($view, $data, $return, $processOutput);
    }
BaseEventTypeController