- Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.3 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - Status changed to Needs work
3 months ago 7:59pm 25 November 2024 - πΊπΈUnited States kurttrowbridge
I've been using MR 15, but it's no longer applying to the newest dev version of the module. It looks like there are conflicts in
src/Entity/Flagging.php
andsrc/FlagService.php
. Will report back if I'm able to get it taken care of myself. - πΉπ·Turkey makbay
As a work around, maybe you can implement
hook_ENTITY_TYPE_access()</a>
in a custom module:/** * Implements hook_ENTITY_TYPE_access(). */ function YOURMODULE_flagging_access(EntityInterface $entity, $operation, AccountInterface $account) { if ($entity->getFlagId() === 'your_flag_id' && $operation === 'view') { ... maybe some other logic ... return AccessResult::allowed(); } return AccessResult::neutral(); }