public function renderInstance($instanceId, $instanceConfig)
    {
        $view = new ViewModel(
            [
                'instanceId' => $instanceId,
                'instanceConfig' => $instanceConfig,
                'config' => $this->config,
            ]
        );

        $view->setTemplate($this->template);

        return $view;
    }
public function renderInstance($instanceId, $instanceConfig)
    {
        $view = new ViewModel(
            [
                'instanceId' => $instanceId,
                'instanceConfig' => $instanceConfig,
                'config' => $this->config,
            ]
        );

        $view->setTemplate($this->template);

        return $view;
    }
public function renderInstance ( $ instanceId , $ instanceConfig ) { $ view = new ViewModel ( [ 'instanceId' => $ instanceId , 'instanceConfig' => $ instanceConfig , 'config' => $ this -> config , ] ) ; $ view -> setTemplate ( $ this -> template ) ; return $ view ; }
Reads a plugin instance from persistent storage returns a view model for
it

@param int   $instanceId
@param array $instanceConfig

@return ViewModel
Reads a plugin instance from persistent storage returns a view model for it