Updated: Comment #0
Problem/Motivation
Path alias related queries currently appear in \Drupal\Core\Path\AliasManager and \Drupal\Core\Path\Path. We should move all storage-dependent code to one class to make storage swap-ability easier.
Proposed resolution
Move all queries from \Drupal\Core\Path\AliasManager to \Drupal\Core\Path\Path and make the latter storage controller for all path-related operations. This is currently impossible to do, since it results in DIC circular dependency. #2126421: Decouple \Drupal\Core\Path\AliasManager and \Drupal\Core\Path\Path fixes that, which means that we need to postpone this until #2126421: Decouple \Drupal\Core\Path\AliasManager and \Drupal\Core\Path\Path is committed.
I have some code ready. Will upload it later today.
Remaining tasks
- finish work on #2126421: Decouple \Drupal\Core\Path\AliasManager and \Drupal\Core\Path\Path
- move all storage-dependent code from AliasManager to Path
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff.txt | 808 bytes | slashrsm |
#9 | 2136503_9.patch | 13.34 KB | slashrsm |
#7 | interdff.txt | 960 bytes | slashrsm |
#7 | 2136503_7.patch | 13.4 KB | slashrsm |
#5 | interdiff.txt | 3.69 KB | slashrsm |
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedComment #2
slashrsm CreditAttribution: slashrsm commentedComment #4
jibrantyphint missing.
We can add more chars on all comment lines to make it 80 chars.
Should be single line. It is not valid description IMO.
Comment #5
slashrsm CreditAttribution: slashrsm commentedFixed #4 comments and some other minor thing.
Not sure what you mean.
Comment #7
slashrsm CreditAttribution: slashrsm commentedLet's try again.
Comment #8
jibranThanks for fixing all the issues.
According to https://drupal.org/node/1354#functions
So here are my suggestions.
Returns an alias of Drupal system URL.
Returns Drupal system URL of an alias.
Comment #9
slashrsm CreditAttribution: slashrsm commentedComment #10
jibranIt is a simple clean up so I think its safe to RTBC.
Comment #11
catchCommitted/pushed to 8.x, thanks!