瀏覽代碼

Merge pull request #477 from F5/single_template_override

Added a way to override a single template for an admin from services
Thomas 13 年之前
父節點
當前提交
8742cd7b1f
共有 1 個文件被更改,包括 10 次插入0 次删除
  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
      */