PathComponentBase.php in Drupal 7 to 8/9 Module Upgrader 8
Namespace
Drupal\drupalmoduleupgrader\Utility\PathFile
src/Utility/Path/PathComponentBase.phpView source
<?php
namespace Drupal\drupalmoduleupgrader\Utility\Path;
/**
* Represents a single component in a route path.
*/
abstract class PathComponentBase implements PathComponentInterface {
/**
* @var string
*/
protected $value;
/**
* {@inheritdoc}
*/
public function __construct($value) {
$this->value = $value;
}
/**
* {@inheritdoc}
*/
public function __toString() {
return $this->value;
}
}
Classes
Name | Description |
---|---|
PathComponentBase | Represents a single component in a route path. |