function RestLoginHttpTest::getLoginStatusUrlString
Same name and namespace in other branches
- 11.x core/modules/rest/tests/src/Functional/RestLoginHttpTest.php \Drupal\Tests\rest\Functional\RestLoginHttpTest::getLoginStatusUrlString()
Gets the URL string for checking login for a given serialization format.
Parameters
string $format: The format to use to make the request.
Return value
string The URL string.
File
-
core/
modules/ rest/ tests/ src/ Functional/ RestLoginHttpTest.php, line 517
Class
- RestLoginHttpTest
- Tests login and password reset via direct HTTP.
Namespace
Drupal\Tests\rest\FunctionalCode
protected function getLoginStatusUrlString($format = 'json') {
$user_login_status_url = Url::fromRoute('rest.login_status');
$user_login_status_url->setRouteParameter('_format', $format);
$user_login_status_url->setAbsolute();
return $user_login_status_url->toString();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.