PHPackages                             makinacorpus/drupal-udashboard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. makinacorpus/drupal-udashboard

ActiveDrupal-module[Admin Panels](/categories/admin)

makinacorpus/drupal-udashboard
==============================

Advanced dashboard API for Drupal

1.0.3(8y ago)22092[7 issues](https://github.com/makinacorpus/drupal-udashboard/issues)GPL-2PHP

Since Feb 2Pushed 8y ago12 watchersCompare

[ Source](https://github.com/makinacorpus/drupal-udashboard)[ Packagist](https://packagist.org/packages/makinacorpus/drupal-udashboard)[ RSS](/packages/makinacorpus-drupal-udashboard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (22)Used By (0)

µDashboard - an advanced dashboard API for Drupal
=================================================

[](#µdashboard---an-advanced-dashboard-api-for-drupal)

This initial version is a raw export of the *ucms\_dashboard* from the  Drupal module suite. Only namespaces have been changed, and a few utility functions moved from the *ucms\_contrib*module.

It should be stable enough to use.

Installation
------------

[](#installation)

It depends heavily on makinacorpus/drupal-sf-dic, the easiest way to install is:

```
composer install makinacorpus/drupal-udashboard

```

Configuration
-------------

[](#configuration)

### Runtime configuration

[](#runtime-configuration)

#### Enable top toolbar

[](#enable-top-toolbar)

```
$conf['udashboard.context_pane_enable'] = true;
```

#### Enable context pane

[](#enable-context-pane)

```
$conf['udashboard.context_pane_enable'] = true;
```

#### Enable admin pages breadcrumb alteration

[](#enable-admin-pages-breadcrumb-alteration)

This is a very specific setting for usage with UCMS.

```
$conf['udashboard.breadcrumb_alter'] = true;
```

### Display configuration

[](#display-configuration)

#### Disable custom CSS

[](#disable-custom-css)

If you wish to embed this module's CSS or custom LESS into your own custom theme, you might wish to disable CSS loading:

```
$conf['udashboard.disable_css'] = true;
```

#### Drupal seven theme fixes

[](#drupal-seven-theme-fixes)

By setting this to `true`, seven fixes will always be included:

```
$conf['udashboard.seven_force'] = true;
```

By setting it to `false`, the will be always dropped.

By removing the variable or setting it to `null` seven admin theme will be automatically detected at runtime and fixes will be loaded if necessary.

Usage
-----

[](#usage)

### Philosophy

[](#philosophy)

This module takes the philosophy from SOLID principles, for this to work, you will need to create:

- a Controller
- a DataSource
- a twig template
- possibly an ActionProvider

To demo this, we will replace the user administration from Drupal core.

### Bind with Drupal

[](#bind-with-drupal)

```
/**
 * Implements hook_menu_alter().
 */
function mymodule_menu_alter(&$items) {
  $items['admin/people']['page callback'] = 'sf_dic_page';
  $items['admin/people']['page arguments'] = [AccountController::class . '::accountList'];
}
```

The `AccountController::actionListAction` method will be called when hitting `admin/people`.

### Controller

[](#controller)

```
