Show disabled layouts without workaround / hide uninstalled disabled

Created on 2 July 2018, over 6 years ago
Updated 22 March 2023, over 1 year ago

Issue for this code / comment:

// Already disabled layouts have already been removed here because the form is built after layout_disable_layout_alter.
    // So we have to make them available manually:
    if (!empty($settings['disabled_layouts'])) {
      \Drupal::messenger()
        ->addWarning('If already removed from code (disabled) layouts appear here, uncheck them to remove them finally. They are still listed due to a hook_layout_alter logical incompatibility.');
      // TODO - This may lead to listing already uninstalled layouts here. Find a way to only show existing layouts despite alteration.
      $layout_names = array_merge($settings['disabled_layouts'], $layout_names);
    }

We'd need a further "status" variable instead of unsetting the disabled layout from the layout_array in layout_disable_layout_alter(). Perhaps we'd need a core feature request or find a better solution to get the list without the alter() call.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024