Explorar el Código

Added a way to override a single template for an admin from services

Francisco Facioni hace 13 años
padre
commit
ef1d8c0094
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      Admin/Admin.php

+ 10 - 0
Admin/Admin.php

@@ -1005,6 +1005,16 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         $this->templates = $templates;
     }
 
+    /**
+     * @param $name
+     * @param $template
+     * @return void
+     */
+    public function setTemplate($name, $template)
+    {
+        $this->templates[$name] = $template;
+    }
+
     /**
      * @return array
      */