abstract class PathComponentBase in Drupal 7 to 8/9 Module Upgrader 8
Represents a single component in a route path.
Hierarchy
- class \Drupal\drupalmoduleupgrader\Utility\Path\PathComponentBase implements PathComponentInterface
Expanded class hierarchy of PathComponentBase
2 files declare their use of PathComponentBase
- PathComponent.php in src/
Utility/ Path/ Drupal7/ PathComponent.php - PathComponent.php in src/
Utility/ Path/ Drupal8/ PathComponent.php
File
- src/
Utility/ Path/ PathComponentBase.php, line 8
Namespace
Drupal\drupalmoduleupgrader\Utility\PathView source
abstract class PathComponentBase implements PathComponentInterface {
/**
* @var string
*/
protected $value;
/**
* {@inheritdoc}
*/
public function __construct($value) {
$this->value = $value;
}
/**
* {@inheritdoc}
*/
public function __toString() {
return $this->value;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathComponentBase:: |
protected | property | ||
PathComponentBase:: |
public | function |
Constructs the path component. Overrides PathComponentInterface:: |
|
PathComponentBase:: |
public | function |
Overrides PathComponentInterface:: |
|
PathComponentInterface:: |
public | function | Returns if this component is considered a wildcard. | 2 |