public function PathUtility::getPlaceholders in Drupal 7 to 8/9 Module Upgrader 8
Returns every placeholder in the path, keyed by position.
Return value
static
File
- src/
Utility/ Path/ Drupal7/ PathUtility.php, line 42
Class
- PathUtility
- Represents a Drupal 7 route path.
Namespace
Drupal\drupalmoduleupgrader\Utility\Path\Drupal7Code
public function getPlaceholders() {
return $this
->filter(function (PathComponent $component) {
return $component
->isPlaceholder();
});
}