소스 검색

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
      */