Contao\PageModel::onUnregister PHP Метод

onUnregister() публичный Метод

Unregister the contao.dns-fallback alias when the model is detached from the registry
public onUnregister ( Registry $registry )
$registry Contao\Model\Registry The model registry
    public function onUnregister(Model\Registry $registry)
    {
        parent::onUnregister($registry);
        // Unregister the fallback page
        if ($this->fallback && $this->type == 'root' && $registry->isRegisteredAlias($this, 'contao.dns-fallback', $this->dns)) {
            $registry->unregisterAlias($this, 'contao.dns-fallback', $this->dns);
        }
    }