public function afterFetch()
    {
        if (
            ($theme = Theme::getEditTheme())
            && ($themeMap = array_get($this->attributes, 'theme_map'))
            && ($cmsPage = array_get($themeMap, $theme->getDirName()))
        ) {
            $this->cms_page = $cmsPage;
        }
        else {
            $this->is_enabled = false;
        }
    }
public function afterFetch()
    {
        if (
            ($theme = Theme::getEditTheme())
            && ($themeMap = array_get($this->attributes, 'theme_map'))
            && ($cmsPage = array_get($themeMap, $theme->getDirName()))
        ) {
            $this->cms_page = $cmsPage;
        }
        else {
            $this->is_enabled = false;
        }
    }
public function afterFetch ( ) { if ( ( $ theme = Theme :: getEditTheme ( ) ) && ( $ themeMap = array_get ( $ this -> attributes , 'theme_map' ) ) && ( $ cmsPage = array_get ( $ themeMap , $ theme -> getDirName ( ) ) ) ) { $ this -> cms_page = $ cmsPage ; } else { $ this -> is_enabled = false ; } }
Restore the CMS page found in the mapping array, or disable the
maintenance mode.
@return void
Restore the CMS page found in the mapping array or disable the maintenance mode .