Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/drupal#52 Override getUrlPath() for Drupal8 #15267

Closed
wants to merge 2 commits into from

Conversation

mlutfy
Copy link
Member

@mlutfy mlutfy commented Sep 10, 2019

Overview

Aims to deprecate the use of the "q" variable in Drupal8. The "q" variable is deprecated, so accessing it throws notices/warnings.

More details: https://lab.civicrm.org/dev/drupal/issues/52

This is a companion PR for #15265

Full disclosure: I have been running a variant of this patch in production for a long time, but I have not tested this specific patch.

@civibot
Copy link

civibot bot commented Sep 10, 2019

(Standard links)

@civibot civibot bot added the master label Sep 10, 2019
@mlutfy mlutfy force-pushed the drupal52 branch 3 times, most recently from 6541c24 to 6f4ab70 Compare September 10, 2019 21:06
@seamuslee001
Copy link
Contributor

is this still needed @mlutfy ?

@mlutfy
Copy link
Member Author

mlutfy commented Jan 27, 2020

@seamuslee001 I think it is. I will try to review again, now that I have finally upgraded to Drupal 8.8.

@jaapjansma
Copy link
Contributor

Betty and I are reviewing PRs and we came across this one. We see the latest work has been done september 11 therefor we assume this PR can be closed as it needs work and nothing happens on it.

Feel free to reopen the PR if needed.

@jaapjansma jaapjansma closed this Mar 16, 2020
@mlutfy
Copy link
Member Author

mlutfy commented Mar 16, 2020

Hi Jaap and Betty, thanks for the review. However, #15268 was only a partial fix. This patch is still required.

@mlutfy mlutfy reopened this Mar 16, 2020
@mlutfy mlutfy force-pushed the drupal52 branch 2 times, most recently from 6f4ab70 to ba9377d Compare March 16, 2020 13:50
@mlutfy
Copy link
Member Author

mlutfy commented Mar 16, 2020

I updated my branch to resolve the conflicts.

Apologies for the typo in my last comment.

@mlutfy
Copy link
Member Author

mlutfy commented Mar 16, 2020

jenkins, test this please

@jaapjansma
Copy link
Contributor

@mlutfy the test is failing because of style warnings are you able to fix them?

There are ~15 helpers in `CRM_Utils_System` that are just pass-throughs.
These follow a pattern of (a) declaring a docblock, (b) delegating the
function-call via `__callStatic()`, and (c) putting the code in
`CRM_Utils_System_{Base,Drupal,WordPress,etc}` using class-method
polymorphism.

The call to `if (method_exists(...))` is essentially a similar
passthrough/class-method polymorphism.

This just changes the notation to match the others.  For someone auditing
the Civi<=>UF contract, this should make it easier to reason about the code.
@jaapjansma
Copy link
Contributor

test this please

@mattwire
Copy link
Contributor

@mlutfy Needs rebase

@jaapjansma jaapjansma added the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label May 25, 2020
@eileenmcnaughton
Copy link
Contributor

@mlutfy a lot has changed since this + it's stale. I'm gonna close for now - please e-open as appropriate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants