You are here

class PathUtility in Drupal 7 to 8/9 Module Upgrader 8

Same name in this branch
  1. 8 src/Utility/Path/Drupal7/PathUtility.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathUtility
  2. 8 src/Utility/Path/Drupal8/PathUtility.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathUtility

Represents a Drupal 8 route path.

Hierarchy

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\Drupal8
View source
class PathUtility extends PathUtilityBase {

  /**
   * {@inheritdoc}
   */
  public static function getComponent($value) {
    return new PathComponent($value);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PathUtility::getComponent public static function Returns a new path component wrapping a value. Overrides PathUtilityInterface::getComponent
PathUtilityBase::$_wildcard protected property The next index for getNextWildcard() to slice on.
PathUtilityBase::add public function
PathUtilityBase::contains public function
PathUtilityBase::count 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::deleteWildcards public function Returns a copy of the collection with wildcards removed.
PathUtilityBase::find public function Filters the path by a string. The filtered path will only contain components whose string representation is identical to $element.
PathUtilityBase::getNextWildcard public function Returns the next wildcard, if any.
PathUtilityBase::getParent public function Returns a PathUtilityInterface for the parent path. Overrides PathUtilityInterface::getParent
PathUtilityBase::getWildcards public function Returns every {wildcard} in the path, keyed by position.
PathUtilityBase::hasWildcards public function Returns if there are wildcards in the path. Overrides PathUtilityInterface::hasWildcards
PathUtilityBase::__construct public function Constructs a path utility. Overrides PathUtilityInterface::__construct
PathUtilityBase::__toString public function Collapses the path into a string. Overrides PathUtilityInterface::__toString