mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-18 04:28:19 +01:00
Move Scheduler to Tools
This commit is contained in:
@@ -601,7 +601,11 @@ class Admin
|
||||
// Check to see if a data type is plugin-provided, before looking into core ones
|
||||
$event = $this->grav->fireEvent('onAdminData', new Event(['type' => &$type]));
|
||||
if ($event && isset($event['data_type'])) {
|
||||
return $event['data_type'];
|
||||
if (is_string($event['data_type'])) {
|
||||
$type = $event['data_type'];
|
||||
} else {
|
||||
return $event['data_type'];
|
||||
}
|
||||
}
|
||||
|
||||
/** @var UniformResourceLocator $locator */
|
||||
|
||||
Reference in New Issue
Block a user