protected function load() { parent::load(); $this->set('stIDNeutral', null); $stack = Stack::getByID($this->stID); if ($stack && $stack->isNeutralStack()) { $detector = isset($this->app) ? $this->app->make('multilingual/detector') : \Core::make('multilingual/detector'); /* @var \Concrete\Core\Multilingual\Service\Detector $detector */ if ($detector->isEnabled()) { $section = Section::getCurrentSection(); if ($section) { $localized = $stack->getLocalizedStack($section); if ($localized) { $this->stIDNeutral = $this->stID; $this->stID = $localized->getCollectionID(); $this->set('stIDNeutral', $this->stIDNeutral); $this->set('stID', $this->stID); } } } } }