Remove Moderated content tab

Created on 6 March 2021, over 3 years ago
Updated 24 February 2023, over 1 year ago

If I disable or delete the Moderated content view under for /admin/content/moderated the tab persists there.

How can it be removed?

💬 Support request
Status

Closed: outdated

Version

9.4

Component
Content moderation 

Last updated 1 day ago

Created by

🇩🇪Germany demonde

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.

  • 🇬🇷Greece dspachos

    Hi, you need to implement a custom hook, something like that:

    /**
     * Implements hook_menu_local_tasks_alter()
     */
    function MYMODULE_menu_local_tasks_alter(&$data, $route_name, RefinableCacheableDependencyInterface &$cacheability) {
      if ($route_name == 'system.admin_content') {
        unset($data['tabs'][1]['content_moderation.content']);
      }
    }
    
    
Production build 0.71.5 2024