mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-02 22:00:45 +01:00
🎨 Code hints, docblocks
This commit is contained in:
@@ -479,6 +479,8 @@ class Admin
|
||||
/**
|
||||
* Get all themes.
|
||||
*
|
||||
* @param bool $local
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function themes($local = true)
|
||||
|
||||
@@ -1,14 +1,23 @@
|
||||
<?php
|
||||
namespace Grav\Plugin;
|
||||
|
||||
use \Grav\Common\Grav;
|
||||
use Grav\Common\Grav;
|
||||
use Grav\Common\Language\Language;
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
use Symfony\Component\Yaml\Dumper;
|
||||
use Symfony\Component\Yaml\Parser;
|
||||
|
||||
class AdminTwigExtension extends \Twig_Extension
|
||||
{
|
||||
/**
|
||||
* @var Grav
|
||||
*/
|
||||
protected $grav;
|
||||
|
||||
/**
|
||||
* @var Language $lang
|
||||
*/
|
||||
protected $lang;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->grav = Grav::instance();
|
||||
|
||||
Reference in New Issue
Block a user