Prechádzať zdrojové kódy

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

Francisco Facioni 13 rokov pred
rodič
commit
ef1d8c0094
1 zmenil súbory, kde vykonal 10 pridanie a 0 odobranie
  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
      */