forked from fa/breadcrumb-the-shire
The api_docs.view ability was missing from layoutAuth after removing the sidebar.admin_nav_item slot from the api-docs module. Add a HelpCenterLayoutProvider that checks the ability via AuthorizationService and provides the result in layout nav context (help-center.nav). Panel template now reads can_view_api_docs from the provider instead of layoutAuth. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Help Center module manifest.
|
|
*
|
|
* Adds a help icon to the sidebar with navigation links
|
|
* to documentation, API docs, and system information.
|
|
*/
|
|
return [
|
|
'id' => 'help-center',
|
|
'version' => '1.0.0',
|
|
'enabled_by_default' => true,
|
|
'load_order' => 30,
|
|
'requires' => [],
|
|
|
|
'routes' => [],
|
|
'public_paths' => [],
|
|
'container_registrars' => [
|
|
\MintyPHP\Module\HelpCenter\HelpCenterContainerRegistrar::class,
|
|
],
|
|
|
|
'ui_slots' => [
|
|
'aside.tab_panel' => [
|
|
[
|
|
'key' => 'help',
|
|
'label' => 'Help',
|
|
'icon' => 'bi-question-circle',
|
|
'href' => '',
|
|
'permission' => '',
|
|
'panel_template' => 'templates/aside-help-panel.phtml',
|
|
'details_storage' => 'aside-help-sections',
|
|
'details_open_active' => true,
|
|
'order' => 900,
|
|
],
|
|
],
|
|
],
|
|
|
|
'authorization_policies' => [],
|
|
'search_resources' => [],
|
|
'asset_groups' => [],
|
|
'scheduler_jobs' => [],
|
|
'layout_context_providers' => [
|
|
\MintyPHP\Module\HelpCenter\Providers\HelpCenterLayoutProvider::class,
|
|
],
|
|
'session_providers' => [],
|
|
'permissions' => [],
|
|
'event_listeners' => [],
|
|
'deactivation_handler' => null,
|
|
'migrations_path' => null,
|
|
'i18n_path' => 'i18n',
|
|
];
|