Problem/Motivation

Hard-code the admin dashboard as Controller and Twig template, remove Layout Builder and Page Manager dependency

Should be simple for us using a twig template and the blocks currently places in the layouts.

This still allows us to override the dashboard via Twig, but honestly it was so good and flexible that the layout never changed in the past for any project :D

So let's make this lean!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

thomas.frobieter made their first commit to this issue’s fork.

anybody’s picture

These are the configs containing all the infos we need to convert it:

uuid: 12b1d437-4c97-4974-8d53-8aa364b5cb6b
langcode: en
status: true
dependencies:
  module:
    - user_permission_condition
  enforced:
    module:
      - user_permission_condition
      - drowl_admin_dashboard
id: admin_dashboard
label: 'Admin Dashboard'
description: 'Administratives Dashboard als Einstiegsseite & Übersicht für Mitarbeiter / Verwalter / Administratoren.'
use_admin_theme: true
path: /admin/dashboard
access_logic: and
access_conditions:
  -
    id: user_permission
    negate: false
    context_mapping:
      user: '@user.current_user_context:current_user'
    permission: 'access drowl admin dashboard'
parameters: {  }
uuid: 3d742661-9143-4ae3-b8ae-ca14d500c437
langcode: en
status: true
dependencies:
  config:
    - page_manager.page.admin_dashboard
    - search_api_page.search_api_page.search_api_global
    - system.menu.admin
    - system.menu.admin-quicklinks
    - views.view.drowl_admin_dashboard_content
    - views.view.drowl_admin_dashboard_people
    - views.view.drowl_admin_dashboard_user_profile_display
    - views.view.scheduler_scheduled_content
    - views.view.who_s_online
  module:
    - devel
    - drowl_admin_dashboard
    - drowl_util_webks_branding
    - menu_block
    - search_api_page
    - system
    - views
  enforced:
    module:
      - user_permission_condition
      - drowl_admin_dashboard
id: admin_dashboard-layout_builder-0
label: 'Layout Builder'
weight: 0
variant: layout_builder
variant_settings:
  id: layout_builder
  label: null
  weight: 0
  uuid: a80386f0-6c82-4a18-bca1-57ff2c5927ec
  sections:
    -
      layout_id: admin_dashboard_default
      layout_settings:
        label: ''
      components:
        b4d9a23a-96f0-4abc-81c3-b23b56301175:
          uuid: b4d9a23a-96f0-4abc-81c3-b23b56301175
          region: left_middle
          configuration:
            id: 'views_block:drowl_admin_dashboard_people-drowl_admin_dashboard_people_block'
            label: ''
            label_display: visible
            provider: views
            context_mapping: {  }
            views_label: ''
            items_per_page: none
          weight: 0
          additional: {  }
        f453a8a0-fd16-4e2a-8a3a-8dacbdc5f085:
          uuid: f453a8a0-fd16-4e2a-8a3a-8dacbdc5f085
          region: right_bottom
          configuration:
            id: system_powered_by_block
            label: 'Powered by Drupal'
            label_display: '0'
            provider: system
            context_mapping: {  }
          weight: 0
          additional: {  }
        a31b8443-2044-4a96-9dda-963418614c6f:
          uuid: a31b8443-2044-4a96-9dda-963418614c6f
          region: right_top
          configuration:
            id: 'views_block:drowl_admin_dashboard_user_profile_display-drowl_admin_dashboard_user_profile_display_block'
            label: ''
            label_display: visible
            provider: views
            context_mapping:
              uid: '@user.current_user_context:current_user'
            views_label: ''
            items_per_page: none
          weight: 0
          additional: {  }
        d5cdb74c-7e9b-44d6-87f2-91143c820130:
          uuid: d5cdb74c-7e9b-44d6-87f2-91143c820130
          region: right_top
          configuration:
            id: 'menu_block:admin-quicklinks'
            label: 'Admin Quicklinks'
            label_display: visible
            provider: menu_block
            context_mapping: {  }
            follow: false
            follow_parent: child
            label_link: false
            label_type: block
            level: 1
            depth: 0
            expand_all_items: true
            parent: 'admin-quicklinks:'
            suggestion: admin_quicklinks
          weight: 1
          additional: {  }
        33777841-60e0-41af-86ef-29b86b2a6cd5:
          uuid: 33777841-60e0-41af-86ef-29b86b2a6cd5
          region: right_top
          configuration:
            id: search_api_page_form_block
            label: Suche
            label_display: visible
            provider: search_api_page
            context_mapping: {  }
            search_api_page: search_api_global
          weight: 2
          additional: {  }
        e8b7887a-0aa9-4e2e-b388-436fd1ef459b:
          uuid: e8b7887a-0aa9-4e2e-b388-436fd1ef459b
          region: right_top
          configuration:
            id: devel_switch_user
            label: 'Benutzer wechseln'
            label_display: visible
            provider: devel
            context_mapping: {  }
            list_size: 3
            include_anon: false
            show_form: true
          weight: 3
          additional: {  }
        4897f490-9317-44ad-bc15-abf8cb7d4401:
          uuid: 4897f490-9317-44ad-bc15-abf8cb7d4401
          region: right_top
          configuration:
            id: 'views_block:who_s_online-who_s_online_block'
            label: ''
            label_display: visible
            provider: views
            context_mapping: {  }
            views_label: ''
            items_per_page: '5'
          weight: 4
          additional: {  }
        f24e9a9f-a237-48c2-b85c-605469354f08:
          uuid: f24e9a9f-a237-48c2-b85c-605469354f08
          region: right_top
          configuration:
            id: drowl_util_webks_branding
            label: 'DROWL.de Branding'
            label_display: '0'
            provider: drowl_util_webks_branding
            context_mapping: {  }
          weight: 5
          additional: {  }
        e675f1ee-8561-48be-8986-1bece993b929:
          uuid: e675f1ee-8561-48be-8986-1bece993b929
          region: left_top
          configuration:
            id: 'menu_block:admin'
            label: 'Inhalt hinzufügen'
            label_display: visible
            provider: menu_block
            context_mapping: {  }
            follow: false
            follow_parent: child
            label_link: true
            label_type: fixed
            level: 1
            depth: 1
            expand_all_items: true
            parent: 'admin:admin_toolbar_tools.extra_links:node.add'
            suggestion: drowl_admin_dashboard_tiles
          weight: 0
          additional: {  }
        d0bbfe4e-ab8d-4e56-9ee0-668b3b1cb5c6:
          uuid: d0bbfe4e-ab8d-4e56-9ee0-668b3b1cb5c6
          region: left_top
          configuration:
            id: 'views_block:drowl_admin_dashboard_content-drowl_admin_dashboard_content_block'
            label: ''
            label_display: visible
            provider: views
            context_mapping: {  }
            views_label: ''
            items_per_page: none
          weight: 1
          additional: {  }
        f6359767-e7cb-41d9-9284-c260c418a3f8:
          uuid: f6359767-e7cb-41d9-9284-c260c418a3f8
          region: left_top
          configuration:
            id: 'views_block:scheduler_scheduled_content-block_1'
            label: ''
            label_display: visible
            provider: views
            context_mapping: {  }
            views_label: ''
            items_per_page: none
          weight: 2
          additional: {  }
      third_party_settings: {  }
page: admin_dashboard
selection_criteria: {  }
selection_logic: and
static_context: {  }

anybody’s picture

Assigned: grevil » thomas.frobieter

@thomas.frobieter prepares the twig template.

anybody’s picture

Title: [4.x] Hard-code the admin dashboard as Controller and Twig template, remove Layout Builder and Page Manager dependency » [3.x] Hard-code the admin dashboard as Controller and Twig template, remove Layout Builder and Page Manager dependency
anybody’s picture

Version: 2.x-dev » 3.x-dev

thomas.frobieter’s picture

Version: 3.x-dev » 2.x-dev
Assigned: thomas.frobieter » grevil
Status: Active » Needs review

Added the template, untested.

anybody’s picture

Version: 2.x-dev » 3.x-dev
anybody’s picture

Assigned: grevil » Unassigned
Status: Needs review » Reviewed & tested by the community

Ok let's merge it and then proceed in 3.x-dev with further issues...

anybody’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.