class PathUtility in Drupal 7 to 8/9 Module Upgrader 8
Same name in this branch
- 8 src/Utility/Path/Drupal7/PathUtility.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathUtility
- 8 src/Utility/Path/Drupal8/PathUtility.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathUtility
Represents a Drupal 8 route path.
Hierarchy
- class \Drupal\drupalmoduleupgrader\Utility\Path\PathUtilityBase extends \Doctrine\Common\Collections\ArrayCollection implements PathUtilityInterface
- class \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathUtility
Expanded class hierarchy of PathUtility
2 files declare their use of PathUtility
- PathUtilityTest.php in tests/
src/ Unit/ Utility/ Path/ Drupal8/ PathUtilityTest.php - RouteWrapper.php in src/
Routing/ Drupal8/ RouteWrapper.php
File
- src/
Utility/ Path/ Drupal8/ PathUtility.php, line 10
Namespace
Drupal\drupalmoduleupgrader\Utility\Path\Drupal8View source
class PathUtility extends PathUtilityBase {
/**
* {@inheritdoc}
*/
public static function getComponent($value) {
return new PathComponent($value);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathUtility:: |
public static | function |
Returns a new path component wrapping a value. Overrides PathUtilityInterface:: |
|
PathUtilityBase:: |
protected | property | The next index for getNextWildcard() to slice on. | |
PathUtilityBase:: |
public | function | ||
PathUtilityBase:: |
public | function | ||
PathUtilityBase:: |
public | function | After PHP 7.2+ for count() E_WARNING will now be emitted when attempting to count() non-countable types. Ref: https://secure.php.net/manual/en/migration72.incompatible.php#migration7... | |
PathUtilityBase:: |
public | function | Returns a copy of the collection with wildcards removed. | |
PathUtilityBase:: |
public | function | Filters the path by a string. The filtered path will only contain components whose string representation is identical to $element. | |
PathUtilityBase:: |
public | function | Returns the next wildcard, if any. | |
PathUtilityBase:: |
public | function |
Returns a PathUtilityInterface for the parent path. Overrides PathUtilityInterface:: |
|
PathUtilityBase:: |
public | function | Returns every {wildcard} in the path, keyed by position. | |
PathUtilityBase:: |
public | function |
Returns if there are wildcards in the path. Overrides PathUtilityInterface:: |
|
PathUtilityBase:: |
public | function |
Constructs a path utility. Overrides PathUtilityInterface:: |
|
PathUtilityBase:: |
public | function |
Collapses the path into a string. Overrides PathUtilityInterface:: |