skeeks\cms\models\CmsContentType::_actionBeforeDelete PHP Method

_actionBeforeDelete() public method

public _actionBeforeDelete ( $e )
    public function _actionBeforeDelete($e)
    {
        if ($this->cmsContents) {
            throw new Exception(\Yii::t('skeeks/cms', "Before you delete this type of content you want to delete the contents invested in it"));
        }
    }