class Uri

Same name in this branch

The URI data type.

The plain value of a URI is an absolute URI represented as PHP string.

Hierarchy

Expanded class hierarchy of Uri

File

drupal/core/lib/Drupal/Core/TypedData/Type/Uri.php, line 17
Definition of Drupal\Core\TypedData\Type\Uri.

Namespace

Drupal\Core\TypedData\Type
View source
class Uri extends TypedData implements TypedDataInterface {

  /**
   * The data value.
   *
   * @var string
   */
  protected $value;

  /**
   * Implements TypedDataInterface::setValue().
   */
  public function setValue($value) {
    $this->value = isset($value) ? (string) $value : $value;
  }

  /**
   * Implements TypedDataInterface::validate().
   */
  public function validate() {

    // TODO: Implement validate() method.
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TypedData::$definition protected property The data definition.
TypedData::getDefinition public function Implements TypedDataInterface::getDefinition(). Overrides TypedDataInterface::getDefinition
TypedData::getString public function Implements TypedDataInterface::getString(). Overrides TypedDataInterface::getString 8
TypedData::getType public function Implements TypedDataInterface::getType(). Overrides TypedDataInterface::getType
TypedData::getValue public function Implements TypedDataInterface::getValue(). Overrides TypedDataInterface::getValue 7
TypedData::__construct public function Constructs a TypedData object given its definition. 3
Uri::$value protected property The data value.
Uri::setValue public function Implements TypedDataInterface::setValue(). Overrides TypedData::setValue
Uri::validate public function Implements TypedDataInterface::validate(). Overrides TypedDataInterface::validate