public static function PathUtility::getComponent 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::getComponent()
- 8 src/Utility/Path/Drupal8/PathUtility.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathUtility::getComponent()
Returns a new path component wrapping a value.
Parameters
mixed $value: The value to wrap.
Return value
\Drupal\drupalmoduleupgrader\Utility\Path\PathComponentInterface
Overrides PathUtilityInterface::getComponent
File
- src/
Utility/ Path/ Drupal8/ PathUtility.php, line 15
Class
- PathUtility
- Represents a Drupal 8 route path.
Namespace
Drupal\drupalmoduleupgrader\Utility\Path\Drupal8Code
public static function getComponent($value) {
return new PathComponent($value);
}