Search for getUrlIfValid

  1. Search 7.x for getUrlIfValid
  2. Search 8.9.x for getUrlIfValid
  3. Search 10.3.x for getUrlIfValid
  4. Search 11.x for getUrlIfValid
  5. Other projects
Title Object type File name Summary
PathValidator::getUrlIfValid function core/lib/Drupal/Core/Path/PathValidator.php Returns a URL object, if the path is valid and accessible.
PathValidator::getUrlIfValidWithoutAccessCheck function core/lib/Drupal/Core/Path/PathValidator.php Returns a URL object, if the path is valid.
PathValidatorInterface::getUrlIfValid function core/lib/Drupal/Core/Path/PathValidatorInterface.php Returns a URL object, if the path is valid and accessible.
PathValidatorInterface::getUrlIfValidWithoutAccessCheck function core/lib/Drupal/Core/Path/PathValidatorInterface.php Returns a URL object, if the path is valid.
PathValidatorTest::testGetUrlIfValidWithAccess function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method when there is access.
PathValidatorTest::testGetUrlIfValidWithFrontPageAndQueryAndFragments function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method with a front page + query + fragments.
PathValidatorTest::testGetUrlIfValidWithoutAccess function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method where there is no access.
PathValidatorTest::testGetUrlIfValidWithoutAccessCheck function core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php
PathValidatorTest::testGetUrlIfValidWithoutAccessCheck function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValidWithoutAccessCheck() method.
PathValidatorTest::testGetUrlIfValidWithQuery function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method with a query in the path.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.