Problem/Motivation
Part of #1025928-18: [meta] Remove the last $op params from our hooks
There's few functions still using $op as argument (except controllers) in public methods (API)
Steps to reproduce
$ git grep '$op,'|grep public and git grep '$op)'|grep public
Proposed resolution
Rename it to $operation
Remaining tasks
patch/review/commit
User interface changes
no
API changes
no, just rename
Data model changes
no
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3353545
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
andypostRemaining ones are in controllers and tests
Comment #3
smustgrave commentedDon't mind marking this but it's going to need a reroll if the first ticket gets in. So probably should be postponed.
Comment #4
spokjeNeeds a reroll, unsure why TestBot didn't kick this back to NR.
Comment #5
andypostre-roll, context changes in
user.moduleComment #6
spokjeRerolls on RTBC issues can go straight back to RTBC.
Comment #7
catchNeeds another re-roll.
Comment #8
spokjeReroll
Comment #9
spokjeComment #10
andypost+1 RTBC as node parts fixed in #3352043: Rename $op operation in hook_node_grants[_alter]() and node_access_grants to $operation
Comment #12
longwaveStill lots of $op arguments, at least some of these are considered API?
Regex for this search was
function.*\$op\W.Comment #13
smustgrave commentedFor #12
Comment #14
urvashi_vora commentedI will provide a patch soon
Comment #17
urvashi_vora commentedPlease review this patch. Replaced $op with $operation as per #12. I excluded controllers to replace $op with $operation.
Thanks
Comment #18
elbertests are failling
Comment #20
elberComment #21
smustgrave commentedHow come the change to ScaffoldFileInfo.php was reverted?
Comment #22
elberComment #23
elberHi I renamed the $op arguments in ScaffoldFileInfo.php to $operation, please revise
Comment #24
smustgrave commentedUsing the regex from #12 there are still some instances but just a few
Comment #25
elberComment #26
andypostComment #27
andypost\Drupal\Core\Update\UpdateKernel::setupRequestMatch()requires to use$opso I reverted it - needs separate issue to deprecate it properly - #3380781: Rename $op with BC usage in update.phpComment #28
andypostThere's few hunks needs to be moved to separate issues
- local variables - to prevent mix with arguments
- routing - needs to provide BC for routing arguments