Свойство | Тип | Описание | |
---|---|---|---|
$features |
Свойство | Тип | Описание | |
---|---|---|---|
$active | boolean | ||
$admin | |||
$admin_route | string | ||
$base | string | ||
$popularity | |||
$route | string | ||
$session | RocketTheme\Toolbox\Session\Session | ||
$template | string | ||
$theme | string | ||
$uri | Grav\Common\Uri | ||
$version |
Метод | Описание | |
---|---|---|
getFormFieldTypes ( ) : array | Get list of form field types specified in this plugin. Only special types needs to be listed. | |
getSubscribedEvents ( ) : array | ||
isAdminPath ( ) : boolean | Check if the current route is under the admin path | |
onAdminDashboard ( ) | ||
onAdminRegisterPermissions ( RocketTheme\Toolbox\Event\Event $e ) | Initial stab at registering permissions (WIP) | |
onAssetsInitialized ( ) | Handles initializing the assets | |
onFormProcessed ( RocketTheme\Toolbox\Event\Event $event ) | Process the admin registration form. | |
onOutputGenerated ( ) | ||
onPagesInitialized ( ) | Sets longer path to the home page allowing us to have list of pages when we enter to pages section. | |
onPluginsInitialized ( ) | If the admin plugin is set as active, initialize the admin | |
onShutdown ( ) | Handles the shutdown | |
onTaskGPM ( ) | Handles getting GPM updates | |
onTwigExtensions ( ) | Add the Admin Twig Extensions | |
onTwigSiteVariables ( ) | Set all twig variables for generating output. | |
onTwigTemplatePaths ( ) | Add twig paths to plugin templates. | |
setup ( ) | If the admin path matches, initialize the Login plugin configuration and set the admin as active. |
Метод | Описание | |
---|---|---|
initializeAdmin ( ) | Initialize the admin. | |
initializeController ( $task, $post ) | ||
validate ( string $type, string $value, string $extra = '' ) : boolean | Validate a value. Currently validates |
public getFormFieldTypes ( ) : array | ||
Результат | array |
public static getSubscribedEvents ( ) : array | ||
Результат | array |
public isAdminPath ( ) : boolean | ||
Результат | boolean |
public onAdminRegisterPermissions ( RocketTheme\Toolbox\Event\Event $e ) | ||
$e | RocketTheme\Toolbox\Event\Event |
public onAssetsInitialized ( ) |
public onFormProcessed ( RocketTheme\Toolbox\Event\Event $event ) | ||
$event | RocketTheme\Toolbox\Event\Event |
public onPagesInitialized ( ) |
public onPluginsInitialized ( ) |
public onTwigSiteVariables ( ) |
public onTwigTemplatePaths ( ) |
public setup ( ) |
protected Admin,Grav\Plugin\Admin $admin | ||
Результат |
protected Popularity,Grav\Plugin\Admin $popularity | ||
Результат |
protected Session,RocketTheme\Toolbox\Session $session | ||
Результат | RocketTheme\Toolbox\Session\Session |