You are here

public static function PathUtilityInterface::getComponent in Drupal 7 to 8/9 Module Upgrader 8

Returns a new path component wrapping a value.

Parameters

mixed $value: The value to wrap.

Return value

\Drupal\drupalmoduleupgrader\Utility\Path\PathComponentInterface

1 call to PathUtilityInterface::getComponent()
PathUtilityBase::add in src/Utility/Path/PathUtilityBase.php
2 methods override PathUtilityInterface::getComponent()
PathUtility::getComponent in src/Utility/Path/Drupal7/PathUtility.php
Returns a new path component wrapping a value.
PathUtility::getComponent in src/Utility/Path/Drupal8/PathUtility.php
Returns a new path component wrapping a value.

File

src/Utility/Path/PathUtilityInterface.php, line 30

Class

PathUtilityInterface
Represents a route path.

Namespace

Drupal\drupalmoduleupgrader\Utility\Path

Code

public static function getComponent($value);