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

Called when the model is detached from the model registry
public onUnregister ( Registry $registry )
$registry Contao\Model\Registry The model registry
Пример #1
0
 /**
  * Unregister the contao.dns-fallback alias when the model is detached from the registry
  *
  * @param Model\Registry $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);
     }
 }