We release a D8 version of Chain Menu Access API early in the release cycle of D8 with the intention to follow core closely and ensure reliable operation.

This thread will track development and list new BETA releases as they become available.

Positive feedback is welcome here, however PLEASE do NOT add bug reports to this issue here.

Comments

salvis’s picture

Title: Chain Menu Access API for D8 » Chain Menu Access API for D8 — BETA4
Version: 8.x-1.x-dev » 8.x-1.0-beta4
Assigned: Unassigned » salvis
Priority: Normal » Major

BETA4 for D8 is the same code as BETA4 for D7, which we just released as 7.x-1.0. Consequently, this issue is the sequel to #995214-10: Chain Menu Access API for D6 and D7 — D7 RELEASED.

 

IF this module works for you, let us know by adding a note to THIS issue below.

IF YOU FIND A BUG, please check the issues queue, and if it hasn't been reported yet, then OPEN A NEW ISSUE!

PLEASE do NOT add bug reports to this issue here.

salvis’s picture

Version: 8.x-1.0-beta4 » 8.x-1.0-beta5

BETA5 follows the D7 API change from 7.x-1.0 to 7.x-2.0, but we retain the major version 1 number for D8.

We are not aware of any client module using CMA for D8 at this point. All clients should definitely use BETA5+.


IF this module works for you, let us know by adding a note to THIS issue below.

IF YOU FIND A BUG, please check the issues queue, and if it hasn't been reported yet, then OPEN A NEW ISSUE!

PLEASE do NOT add bug reports to this issue here.

salvis’s picture

Title: Chain Menu Access API for D8 — BETA4 » Chain Menu Access API for D8 — BETA5
annya’s picture

Issue summary: View changes

I suggest this module is out of date in Drupal 8, because functionality of multiple access checks has been already implemented in core https://www.drupal.org/docs/8/api/routing-system/access-checking-on-rout...

Now I'm working on Forum Access port for Drupal 8. Drupal 7 version of Forum Access was dependant on CMA. But now do the same functionality with the help of Drupal Core API. See bellow:

namespace Drupal\forum_access\Routing;

use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;

/**
 * Listens to the dynamic route events.
 */
class RouteSubscriber extends RouteSubscriberBase {

  /**
   * {@inheritdoc}
   */
  public function alterRoutes(RouteCollection $collection) {
    // @todo Combine it with old access callback. Previously it has been done by chain_menu_access, but now it is outdated.
    if ($route = $collection->get('forum.index')) {
      $custom_access = $route->getRequirement('_custom_access');
      $route->setRequirement('_custom_access', '\Drupal\forum_access\ForumAccess\Access::forumIndex');
    }
  }
}
rohit.rawat619’s picture

Assigned: salvis » rohit.rawat619
rohit.rawat619’s picture

Version: 8.x-1.0-beta5 » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new3.52 KB
rohit.rawat619’s picture

Assigned: rohit.rawat619 » Unassigned
astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

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

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

Maintainers, please credit people who helped resolve this issue.