Posted by slashrsm on
Problem/Motivation
There are 4 functions that are not listed in the interface:
- public function aliasExists()
- public function languageAliasExists()
- public function getAliasesForAdminListing()
- public function pathHasMatchingAlias()
Proposed resolution
Add them to AliasStorageInterface.
Remaining tasks
- write patch
- review patch
User interface changes
- none
API changes
- functions added to the interface (but is not the real change as we're already pretending they are there)
Files:
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2.92 KB | slashrsm | |
| #5 | 5.17 KB | slashrsm | |
| PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 81,196 pass(es). [ View ] | |||
| #1 | 3.73 KB | slashrsm | |
| PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 79,150 pass(es). [ View ] | |||
Comments
Comment #1
slashrsm commentedComment #2
marcingy commentedLook good
Comment #3
Lars Toomre commentedDoes it make sense to clean up the moved doc blocks here? There are some missing type hints and no blank line between @param and @return lines. Also boolean instead of bool as a type hint.
Or should those changes be done in a separate issue?
Comment #4
Primsi commentedLooks ok.
Comment #5
slashrsm commentedYeah, we should. Went through all comments in that file and fixed all of them. https://www.drupal.org/node/1354#types says we should use "bool".
Comment #6
Lars Toomre commentedThanks @slashrsm. All of those documentation adjustments look good!
Comment #10
tim.plunkett commentedThanks!
Comment #11
alexpott commentedThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed a5c5b25 and pushed to 8.0.x. Thanks!
diff --git a/core/lib/Drupal/Core/Path/AliasStorageInterface.php b/core/lib/Drupal/Core/Path/AliasStorageInterface.phpindex f142f79..8d82846 100644
--- a/core/lib/Drupal/Core/Path/AliasStorageInterface.php
+++ b/core/lib/Drupal/Core/Path/AliasStorageInterface.php
@@ -67,7 +67,7 @@ public function delete($conditions);
*
* @param array $preloaded
* Paths that need preloading of aliases.
- * @param strinng $langcode
+ * @param string $langcode
* Language code to search the path with. If there's no path defined for
* that language it will search paths without language.
*
fixed on commit.