By prudloff on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Description:
Before it was possible to add a reason to a neutral access result when using AccessResult::neutral(), but not when using AccessResult::allowedIf() or AccessResult::forbiddenIf().
Now these methods accept a neutral reason argument:
AccessResult::allowedIf($condition, 'This is neutral because...');
AccessResult::forbiddenIf($condition, 'This is forbidden because...', 'This is neutral because...');
Impacts:
Module developers