class Url
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/Util/Url.php \Composer\Util\Url
- 11.1.x vendor/symfony/validator/Constraints/Url.php \Symfony\Component\Validator\Constraints\Url
- 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php \phpDocumentor\Reflection\DocBlock\Tags\Reference\Url
- 11.1.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url
- 11.1.x core/lib/Drupal/Core/Render/Element/Url.php \Drupal\Core\Render\Element\Url
- 11.1.x core/modules/views/src/Plugin/views/field/Url.php \Drupal\views\Plugin\views\field\Url
Hierarchy
- class \PharIo\Manifest\Url
Expanded class hierarchy of Url
81 string references to 'Url'
- ArgumentPluginBase::getCacheContexts in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - The cache contexts associated with this object.
- Auditor::outputAdvisoriesTable in vendor/
composer/ composer/ src/ Composer/ Advisory/ Auditor.php - BuildInformation::setRuntimeInformation in vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ BuildInformation.php - claro_preprocess_input in core/
themes/ claro/ claro.theme - Implements template_preprocess_HOOK() for input.
- CommentTokensHooks::tokenInfo in core/
modules/ comment/ src/ Hook/ CommentTokensHooks.php - Implements hook_token_info().
File
-
vendor/
phar-io/ manifest/ src/ values/ Url.php, line 16
Namespace
PharIo\ManifestView source
class Url {
/** @var string */
private $url;
public function __construct(string $url) {
$this->ensureUrlIsValid($url);
$this->url = $url;
}
public function asString() : string {
return $this->url;
}
/**
* @throws InvalidUrlException
*/
private function ensureUrlIsValid(string $url) : void {
if (filter_var($url, FILTER_VALIDATE_URL) === false) {
throw new InvalidUrlException();
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Url::$url | private | property | @var string |
Url::asString | public | function | |
Url::ensureUrlIsValid | private | function | |
Url::__construct | public | function |