You are here

abstract class PathComponentBase in Drupal 7 to 8/9 Module Upgrader 8

Represents a single component in a route path.

Hierarchy

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\Path
View 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

Namesort descending Modifiers Type Description Overrides
PathComponentBase::$value protected property
PathComponentBase::__construct public function Constructs the path component. Overrides PathComponentInterface::__construct
PathComponentBase::__toString public function Overrides PathComponentInterface::__toString
PathComponentInterface::isWildcard public function Returns if this component is considered a wildcard. 2