fixed columns

This commit is contained in:
Edward Yang 2022-06-30 15:27:18 +08:00
parent 057f05281a
commit 1822a71840
2 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Manager
*
* @throws \Exception
*/
public function getPlugin($code)
public function getPlugin($code): ?Plugin
{
$plugins = $this->getPlugins();
return $plugins[$code] ?? null;

View File

@ -100,6 +100,12 @@ class Plugin implements Arrayable, \ArrayAccess
return admin_route('plugins.edit', ['code' => $this->code]);
}
public function getColumns()
{
return $this->columns;
}
public function toArray(): array
{
return (array)array_merge([