skeeks\cms\controllers\AdminCmsContentElementController::getContent PHP Method

getContent() public method

public getContent ( ) : CmsContent | static
return skeeks\cms\models\CmsContent | static
    public function getContent()
    {
        if ($this->_content !== null) {
            return $this->_content;
        }
        if ($content_id = \Yii::$app->request->get('content_id')) {
            $this->_content = CmsContent::findOne($content_id);
        }
        return $this->_content;
    }