RainLab\Pages\Classes\Snippet::getComponent PHP 메소드

getComponent() 보호된 메소드

This method should not be used in the front-end request handling code.
protected getComponent ( ) : Cms\Classes\ComponentBase
리턴 Cms\Classes\ComponentBase
    protected function getComponent()
    {
        if ($this->componentClass === null) {
            return null;
        }
        if ($this->componentObj !== null) {
            return $this->componentObj;
        }
        $componentClass = $this->componentClass;
        return $this->componentObj = new $componentClass();
    }