public function isRegionInEditMode($region)
    {
        if ($site = $this->siteManager->getContext()) {
            return
                ($this->getPageContext()->isTemporary() && $this->isPageContextRegion($region, $site->theme)) ||
                ($this->getSiteContext()->isTemporary() && $this->isTransversalContextRegion($region, $site->theme))
            ;
        }
        return false;
    }
public function isRegionInEditMode($region)
    {
        if ($site = $this->siteManager->getContext()) {
            return
                ($this->getPageContext()->isTemporary() && $this->isPageContextRegion($region, $site->theme)) ||
                ($this->getSiteContext()->isTemporary() && $this->isTransversalContextRegion($region, $site->theme))
            ;
        }
        return false;
    }
public function isRegionInEditMode ( $ region ) { if ( $ site = $ this -> siteManager -> getContext ( ) ) { return ( $ this -> getPageContext ( ) -> isTemporary ( ) && $ this -> isPageContextRegion ( $ region , $ site -> theme ) ) || ( $ this -> getSiteContext ( ) -> isTemporary ( ) && $ this -> isTransversalContextRegion ( $ region , $ site -> theme ) ) ; } return false ; }
Is the given region in edit mode?

@param string $region Region key

@return boolean
Is the given region in edit mode?