private function updateSubtreeSectionIfNecessary(Location $location, $sectionId)
    {
        if ($this->isMainLocation($location)) {
            $this->setSectionForSubtree($location->id, $sectionId);
        }
    }
private function updateSubtreeSectionIfNecessary(Location $location, $sectionId)
    {
        if ($this->isMainLocation($location)) {
            $this->setSectionForSubtree($location->id, $sectionId);
        }
    }
private function updateSubtreeSectionIfNecessary ( Location $ location , $ sectionId ) { if ( $ this -> isMainLocation ( $ location ) ) { $ this -> setSectionForSubtree ( $ location -> id , $ sectionId ) ; } }
If the location is the main location for its content, updates subtree section.

@param Location $location
@param int $sectionId
If the location is the main location for its content updates subtree section .