mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 08:26:59 +02:00
Document method
This commit is contained in:
@@ -520,6 +520,12 @@ class Admin
|
||||
return dirname('/' . Grav::instance()['admin']->route);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the plugin or theme info passed is from Team Grav
|
||||
*
|
||||
* @param object $info Plugin or Theme info object
|
||||
* @return bool
|
||||
*/
|
||||
public function isTeamGrav($info)
|
||||
{
|
||||
if (isset($info['author']['name']) && $info['author']['name'] == 'Team Grav') {
|
||||
|
||||
Reference in New Issue
Block a user