mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
Check to ensure template has modular templates before showing add modular button
This commit is contained in:
@@ -385,6 +385,17 @@ class Admin
|
||||
return $routes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get All modular types
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function modularTypes()
|
||||
{
|
||||
return Pages::modularTypes();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all plugins.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user