Remove starterkit dependency on adminkit for D10

Created on 8 August 2023, over 1 year ago

There is an adminkit library included in /starterkit/partials/layout-builder-admin/form--layout-builder.html.twig with
{{ attach_library('adminkit/global-styling') }}
as this seems to be the reason the template is used at all I believe that whole template can be removed.

This twig template is included in /starterkit/starterkit.theme with

// *********************************************
// 4. Layout Builder Improvements
// This section in Staterkit and Adminkit match
// One for node edit pages and one for layout build modal.
// This is used to support dragula js for paragraphs.
// @todo can this moved to module?
// *********************************************

/**
 * Implements template_theme().
 *
 * Define the new template for the theme below.
 */
function starterkit_theme($existing, $type, $theme, $path) {
  $theme_path = \Drupal::theme()->getActiveTheme()->getPath();
  return [
    'field_multiple_value_form_divs' => [
      'template' => 'field-multiple-value-form-divs',
      'path' => $theme_path . '/partials/layout-builder-admin',
      'theme path' => $theme_path,
      'render element' => 'element',
    ],
  ];
}

Which can be removed if that library is indeed the only reason for the template.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States damondt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024