Move farm_dashboard to farm_ui_dashboard.
This commit is contained in:
parent
69638f33ec
commit
51562201ee
|
@ -20,7 +20,6 @@ function farm_modules() {
|
|||
return [
|
||||
'base' => [
|
||||
'farm_api' => t('farmOS API'),
|
||||
'farm_dashboard' => t('farmOS Dashboard'),
|
||||
'farm_login' => t('Login with username or email.'),
|
||||
'farm_settings' => t('farmOS Settings forms'),
|
||||
'farm_ui' => t('farmOS UI'),
|
||||
|
|
|
@ -49,8 +49,8 @@ class FarmActions extends DeriverBase {
|
|||
}
|
||||
}
|
||||
|
||||
// Add it to farm.dashboard, if the farm_dashboard module is enabled.
|
||||
if (\Drupal::moduleHandler()->moduleExists('farm_dashboard')) {
|
||||
// Add it to farm.dashboard, if the farm_ui_dashboard module is enabled.
|
||||
if (\Drupal::moduleHandler()->moduleExists('farm_ui_dashboard')) {
|
||||
$this->derivatives[$name]['appears_on'][] = 'farm.dashboard';
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Hooks provided by farm_dashboard.
|
||||
* Hooks provided by farm_ui_dashboard.
|
||||
*
|
||||
* This file contains no working PHP code; it exists to provide additional
|
||||
* documentation for doxygen as well as to document hooks in the standard
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the farm_dashboard module.
|
||||
* Install, update and uninstall functions for the farm_ui_dashboard module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function farm_dashboard_install() {
|
||||
function farm_ui_dashboard_install() {
|
||||
|
||||
// Set the front page to /dashboard.
|
||||
// We cannot set this with config_rewrite because it breaks the config. See:
|
|
@ -1,3 +1,3 @@
|
|||
farm_dashboard:
|
||||
farm_ui_dashboard:
|
||||
default_permissions:
|
||||
- access farm dashboard
|
|
@ -8,7 +8,7 @@
|
|||
/**
|
||||
* Implements hook_toolbar_alter().
|
||||
*/
|
||||
function farm_dashboard_toolbar_alter(&$items) {
|
||||
function farm_ui_dashboard_toolbar_alter(&$items) {
|
||||
|
||||
// Rename home item to "Dashboard".
|
||||
if (!empty($items['home'])) {
|
|
@ -2,6 +2,6 @@ farm.dashboard:
|
|||
path: '/dashboard'
|
||||
defaults:
|
||||
_title: 'Dashboard'
|
||||
_controller: '\Drupal\farm_dashboard\Controller\DashboardController::dashboard'
|
||||
_controller: '\Drupal\farm_ui_dashboard\Controller\DashboardController::dashboard'
|
||||
requirements:
|
||||
_permission: 'access farm dashboard'
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_dashboard\Controller;
|
||||
namespace Drupal\farm_ui_dashboard\Controller;
|
||||
|
||||
use Drupal\Core\Controller\ControllerBase;
|
||||
use Drupal\views\Views;
|
|
@ -7,6 +7,6 @@ provider: null
|
|||
plugin: dashboard_test_block
|
||||
settings:
|
||||
label: 'Dashboard test block label'
|
||||
provider: farm_dashboard_test
|
||||
provider: farm_ui_dashboard_test
|
||||
label_display: '1'
|
||||
visibility: { }
|
|
@ -1,7 +1,7 @@
|
|||
name: Farm Dashboard module tests
|
||||
name: Farm UI Dashboard module tests
|
||||
description: Support module for dashboard.
|
||||
type: module
|
||||
package: Testing
|
||||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_dashboard
|
||||
- farm:farm_ui_dashboard
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* The farm_dashboard_test module.
|
||||
* The farm_ui_dashboard_test module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_farm_dashboard_panes().
|
||||
*/
|
||||
function farm_dashboard_test_farm_dashboard_panes() {
|
||||
function farm_ui_dashboard_test_farm_dashboard_panes() {
|
||||
return [
|
||||
'dashboard_block' => [
|
||||
'block' => 'dashboard_test',
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_dashboard_test\Plugin\Block;
|
||||
namespace Drupal\farm_ui_dashboard_test\Plugin\Block;
|
||||
|
||||
use Drupal\Core\Block\BlockBase;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\farm_dashboard\Functional;
|
||||
namespace Drupal\Tests\farm_ui_dashboard\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
|
||||
|
@ -22,8 +22,8 @@ class DashboardTest extends FarmBrowserTestBase {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
protected static $modules = [
|
||||
'farm_dashboard',
|
||||
'farm_dashboard_test',
|
||||
'farm_ui_dashboard',
|
||||
'farm_ui_dashboard_test',
|
||||
];
|
||||
|
||||
/**
|
|
@ -6,6 +6,7 @@ core_version_requirement: ^9
|
|||
dependencies:
|
||||
- farm:farm_ui_action
|
||||
- farm:farm_ui_breadcrumb
|
||||
- farm:farm_ui_dashboard
|
||||
- farm:farm_ui_help
|
||||
- farm:farm_ui_map
|
||||
- farm:farm_ui_menu
|
||||
|
|
|
@ -3,7 +3,7 @@ status: false
|
|||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_dashboard
|
||||
- farm_ui_dashboard
|
||||
module:
|
||||
- farm_map
|
||||
theme:
|
||||
|
@ -18,6 +18,6 @@ settings:
|
|||
id: dashboard_map
|
||||
map_type: dashboard
|
||||
label: 'Dashboard map'
|
||||
provider: farm_dashboard
|
||||
provider: farm_ui_dashboard
|
||||
label_display: '0'
|
||||
visibility: { }
|
||||
|
|
|
@ -3,7 +3,7 @@ status: true
|
|||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_dashboard
|
||||
- farm_ui_dashboard
|
||||
id: dashboard
|
||||
label: Dashboard
|
||||
description: 'The farmOS dashboard map.'
|
||||
|
|
|
@ -5,7 +5,7 @@ package: farmOS UI
|
|||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:asset
|
||||
- farm:farm_dashboard
|
||||
- farm:farm_location
|
||||
- farm:farm_map
|
||||
- farm:farm_ui_dashboard
|
||||
- farm:farm_ui_views
|
||||
|
|
|
@ -38,7 +38,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
*/
|
||||
protected static $modules = [
|
||||
'farm_observation',
|
||||
'farm_dashboard',
|
||||
'farm_ui_dashboard',
|
||||
'farm_ui_views',
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue