Skip to content

Commit 3863417

Browse files
authored
Merge pull request #4664 from Laravel-Backpack/add-bc-method
Add methods into view namespaces to avoid BC
2 parents bad78e7 + ecf71fe commit 3863417

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/app/Library/CrudPanel/Traits/HasViewNamespaces.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,14 @@ public function addViewNamespaceFor(string $domain, string $viewNamespace)
2323
{
2424
ViewNamespaces::addFor($domain, $viewNamespace);
2525
}
26+
27+
public function getViewNamespacesFor(string $domain)
28+
{
29+
ViewNamespaces::getFor($domain);
30+
}
31+
32+
public function getViewNamespacesWithFallbackFor(string $domain, string $viewNamespacesFromConfigKey)
33+
{
34+
ViewNamespaces::getWithFallbackFor($domain, $viewNamespacesFromConfigKey);
35+
}
2636
}

0 commit comments

Comments
 (0)