Issue #3336780 by diegors, schlaukopf, xjm, fabiansierra5191: Correctly capitalize "url" in documentation only, part 2

merge-requests/2747/merge
catch 2023-04-12 15:28:50 +01:00
parent c2fe4bcb6e
commit c0cc344fb6
73 changed files with 91 additions and 91 deletions

View File

@ -619,7 +619,7 @@ function template_preprocess_datetime_wrapper(&$variables) {
* - attributes: A keyed array of attributes for the <ul> containing the list
* of links.
* - set_active_class: (optional) Whether each link should compare the
* route_name + route_parameters or url (path), language, and query options
* route_name + route_parameters or URL (path), language, and query options
* to the current URL, to determine whether the link is "active". If so,
* attributes will be added to the HTML elements for both the link and the
* list item that contains it, which will result in an "is-active" class

View File

@ -50,7 +50,7 @@ class JsOptimizer implements AssetOptimizerInterface {
* Contents of the javascript asset.
*/
public function clean($contents) {
// Remove JS source and source mapping urls or these may cause 404 errors.
// Remove JS source and source mapping URLs or these may cause 404 errors.
$contents = preg_replace('/\/\/(#|@)\s(sourceURL|sourceMappingURL)=\s*(\S*?)\s*$/m', '', $contents);
return $contents;

View File

@ -30,7 +30,7 @@ class DbCommandBase extends Command {
* @return \Drupal\Core\Database\Connection
*/
protected function getDatabaseConnection(InputInterface $input) {
// Load connection from a url.
// Load connection from a URL.
if ($input->getOption('database-url')) {
// @todo this could probably be refactored to not use a global connection.
// Ensure database connection isn't set.

View File

@ -63,7 +63,7 @@ class EntityController implements ContainerInjectionInterface {
protected $renderer;
/**
* The url generator.
* The URL generator.
*/
protected UrlGeneratorInterface $urlGenerator;

View File

@ -84,7 +84,7 @@ class MaintenanceModeSubscriber implements EventSubscriberInterface {
* @param \Drupal\Core\StringTranslation\TranslationInterface $translation
* The string translation.
* @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
* The url generator.
* The URL generator.
* @param \Drupal\Core\Session\AccountInterface $account
* The current user.
* @param \Drupal\Core\Render\BareHtmlPageRendererInterface $bare_html_page_renderer

View File

@ -197,7 +197,7 @@ class EntityReferenceEntityFormatter extends EntityReferenceFormatterBase {
$elements[$delta] = $view_builder->view($entity, $view_mode, $entity->language()->getId());
// Add a resource attribute to set the mapping property's value to the
// entity's url. Since we don't know what the markup of the entity will
// entity's URL. Since we don't know what the markup of the entity will
// be, we shouldn't rely on it for structured data.
if (!empty($items[$delta]->_attributes) && !$entity->isNew() && $entity->hasLinkTemplate('canonical')) {
$items[$delta]->_attributes += ['resource' => $entity->toUrl()->toString()];

View File

@ -34,7 +34,7 @@ class ConfirmFormHelper {
$url = Url::fromUserInput('/' . ltrim($options['path'], '/'), $options);
}
catch (\InvalidArgumentException $e) {
// Suppress the exception and fall back to the form's cancel url.
// Suppress the exception and fall back to the form's cancel URL.
}
}
// Check for a route-based cancel link.

View File

@ -71,7 +71,7 @@ class SelectLanguageForm extends FormBase {
$form['help'] = [
'#type' => 'item',
// #markup is XSS admin filtered which ensures unsafe protocols will be
// removed from the url.
// removed from the URL.
'#markup' => '<p>Translations will be downloaded from the <a href="https://localize.drupal.org/download">Drupal Translation website</a>. If you do not want this, select <a href="' . $link_to_english . '">English</a>.</p>',
'#states' => [
'invisible' => [

View File

@ -12,7 +12,7 @@ use Drupal\Core\Site\Settings;
class MailFormatHelper {
/**
* Internal array of urls replaced with tokens.
* Internal array of URLs replaced with tokens.
*
* @var array
*/

View File

@ -142,7 +142,7 @@ class RouteProvider implements CacheableRouteProviderInterface, PreloadableRoute
* RouteObjectInterface to link to a content document.
*
* This method may not throw an exception based on implementation specific
* restrictions on the url. That case is considered a not found - returning
* restrictions on the URL. That case is considered a not found - returning
* an empty array. Exceptions are only used to abort the whole request in
* case something is seriously broken, like the storage backend being down.
*
@ -155,7 +155,7 @@ class RouteProvider implements CacheableRouteProviderInterface, PreloadableRoute
* A request against which to match.
*
* @return \Symfony\Component\Routing\RouteCollection
* RouteCollection with all urls that could potentially match $request.
* RouteCollection with all URLs that could potentially match $request.
* Empty collection if nothing can match. The collection will be sorted from
* highest to lowest fit (match of path parts) and then in ascending order
* by route name for routes with the same fit.

View File

@ -17,7 +17,7 @@ interface RouteProviderInterface {
* RouteObjectInterface to link to a content document.
*
* This method may not throw an exception based on implementation specific
* restrictions on the url. That case is considered a not found - returning
* restrictions on the URL. That case is considered a not found - returning
* an empty array. Exceptions are only used to abort the whole request in
* case something is seriously broken, like the storage backend being down.
*

View File

@ -38,7 +38,7 @@ class UrlGenerator implements UrlGeneratorInterface {
protected $requestStack;
/**
* The path processor to convert the system path to one suitable for urls.
* The path processor to convert the system path to one suitable for URLs.
*
* @var \Drupal\Core\PathProcessor\OutboundPathProcessorInterface
*/
@ -76,7 +76,7 @@ class UrlGenerator implements UrlGeneratorInterface {
* @param \Drupal\Core\Routing\RouteProviderInterface $provider
* The route provider to be searched for routes.
* @param \Drupal\Core\PathProcessor\OutboundPathProcessorInterface $path_processor
* The path processor to convert the system path to one suitable for urls.
* The path processor to convert the system path to one suitable for URLs.
* @param \Drupal\Core\RouteProcessor\OutboundRouteProcessorInterface $route_processor
* The route processor.
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack

View File

@ -45,7 +45,7 @@ class LinkGenerator implements LinkGeneratorInterface {
* Constructs a LinkGenerator instance.
*
* @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
* The url generator.
* The URL generator.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
* @param \Drupal\Core\Render\RendererInterface $renderer
@ -196,7 +196,7 @@ class LinkGenerator implements LinkGeneratorInterface {
* @param array $attributes
* The attributes of the generated link.
* @param array $variables
* The link text, url, and other options.
* The link text, URL, and other options.
*
* @return \Drupal\Core\GeneratedLink
* The generated link, along with its associated cacheability metadata.

View File

@ -632,11 +632,11 @@ function _ckeditor5_theme_css($theme = NULL): array {
if (isset($info['ckeditor5-stylesheets']) && $info['ckeditor5-stylesheets'] !== FALSE) {
$css = $info['ckeditor5-stylesheets'];
foreach ($css as $key => $url) {
// CSS url is external or relative to Drupal root.
// CSS URL is external or relative to Drupal root.
if (UrlHelper::isExternal($url) || $url[0] === '/') {
$css[$key] = $url;
}
// CSS url is relative to theme.
// CSS URL is relative to theme.
else {
$css[$key] = '/' . $theme_path . '/' . $url;
}

View File

@ -113,7 +113,7 @@ class CKEditor5ImageController extends ControllerBase {
* The current request object.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
* A JSON object including the file url.
* A JSON object including the file URL.
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* Thrown when file system errors occur.

View File

@ -175,10 +175,10 @@ class ImageUploadTest extends BrowserTestBase {
}
/**
* Provides the image upload url.
* Provides the image upload URL.
*
* @return \Drupal\Core\Url
* The upload image url for the basic_html format.
* The upload image URL for the basic_html format.
*/
protected function getUploadUrl() {
$token = $this->container->get('csrf_token')->get('ckeditor5/upload-image/basic_html');

View File

@ -183,7 +183,7 @@ class CommentController extends ControllerBase {
* The node object identified by the legacy URL.
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
* Redirects user to new url.
* Redirects user to new URL.
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/

View File

@ -199,7 +199,7 @@ class DbLogTest extends BrowserTestBase {
* Tests individual log event page with missing log attributes.
*
* In some cases few log attributes are missing. For example:
* - Missing referer: When request is made to a specific url directly and
* - Missing referer: When request is made to a specific URL directly and
* error occurred. In this case there is no referer.
* - Incorrect location: When location attribute is incorrect uri which can
* not be used to generate a valid link.

View File

@ -29,7 +29,7 @@ trait FakeLogEntries {
* - 'link': String linking to view the result of the event.
* - 'uid': Int identifying the user id for the user.
* - 'request_uri': String identifying the location of the request.
* - 'referer': String identifying the referring url.
* - 'referer': String identifying the referring URL.
* - 'ip': String The ip address of the client machine triggering the log
* entry.
* - 'timestamp': Int unix timestamp.

View File

@ -135,7 +135,7 @@ class DownloadTest extends FileManagedTestBase {
$response = $http_client->head($url, ['http_errors' => FALSE]);
$this->assertSame(403, $response->getStatusCode(), 'Correctly denied access to a file when file_test sets the header to -1.');
// Try requesting the private file url without a file specified.
// Try requesting the private file URL without a file specified.
file_test_reset();
$this->drupalGet('/system/files');
$this->assertSession()->statusCodeEquals(404);

View File

@ -5,7 +5,7 @@ namespace Drupal\Tests\file\Kernel;
use Drupal\Core\File\FileSystemInterface;
/**
* Tests the file url.
* Tests the file URL.
*
* @group file
*/

View File

@ -488,7 +488,7 @@ function _filter_url($text, $filter) {
$valid_url_query_ending_chars = '[a-zA-Z0-9_&=#\/]';
// full path
// and allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
// and allow @ in a URL, but only in the middle. Catch things like http://example.com/@user/
$valid_url_path = '(?:(?:' . $valid_url_path_characters . '*(?:' . $valid_url_balanced_parens . $valid_url_path_characters . '*)*' . $valid_url_ending_characters . ')|(?:@' . $valid_url_path_characters . '+\/))';
// Prepare domain name pattern.

View File

@ -307,7 +307,7 @@ class ForumController extends ControllerBase {
];
if ($forum_term && $forum_term->bundle() == $vid) {
// We are viewing a forum term (specific forum), append the tid to
// the url.
// the URL.
$links[$type]['#link']['localized_options']['query']['forum_id'] = $forum_term->id();
}
}

View File

@ -476,7 +476,7 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
$this->assertNotEmpty($jsonapi_doc_object['meta']['omitted']);
foreach ($jsonapi_doc_object['meta']['omitted']['links'] as $key => $link) {
if (str_starts_with($key, 'item--')) {
// Ensure that resource link contains url with the alias field.
// Ensure that resource link contains URL with the alias field.
$resource_link = Url::fromUri('internal:/jsonapi/user/user/' . $user->uuid() . '/user_roles')->setAbsolute()->toString(TRUE);
$this->assertEquals($resource_link->getGeneratedUrl(), $link['href']);
$this->assertEquals("The current user is not allowed to view this relationship. The user only has authorization for the 'view label' operation.", $link['meta']['detail']);

View File

@ -209,7 +209,7 @@ class LanguageNegotiationContentEntity extends LanguageNegotiationMethodBase imp
* outbound URL pointing to the same content entity.
*
* @param \Symfony\Component\Routing\Route $outbound_route
* The route object for the current outbound url being processed.
* The route object for the current outbound URL being processed.
* @param \Symfony\Component\HttpFoundation\Request $request
* The HttpRequest object representing the current request.
*

View File

@ -40,7 +40,7 @@ class LanguageBrowserDetectionAcceptLanguageTest extends BrowserTestBase {
// Create FR.
ConfigurableLanguage::createFromLangcode('fr')->save();
// Set language detection to url and browser detection.
// Set language detection to URL and browser detection.
$this->drupalGet('/admin/config/regional/language/detection');
$this->submitForm([
'language_interface[enabled][language-url]' => TRUE,

View File

@ -90,7 +90,7 @@ class EntityUrlLanguageTest extends LanguageTestBase {
// The method language-content-entity should run before language-url and
// append query parameter for the content language and prevent language-url
// from overwriting the url.
// from overwriting the URL.
$this->assertStringContainsString('/en/entity_test/' . $this->entity->id() . '?' . LanguageNegotiationContentEntity::QUERY_PARAMETER . '=en', $this->entity->toUrl('canonical')->toString());
$this->assertStringContainsString('/en/entity_test/' . $this->entity->id() . '?' . LanguageNegotiationContentEntity::QUERY_PARAMETER . '=es', $this->entity->getTranslation('es')->toUrl('canonical')->toString());
$this->assertStringContainsString('/en/entity_test/' . $this->entity->id() . '?' . LanguageNegotiationContentEntity::QUERY_PARAMETER . '=fr', $this->entity->getTranslation('fr')->toUrl('canonical')->toString());

View File

@ -14,7 +14,7 @@ use Drupal\Tests\UnitTestCase;
class FieldLinkTest extends UnitTestCase {
/**
* Tests the url transformations in the FieldLink process plugin.
* Tests the URL transformations in the FieldLink process plugin.
*
* @dataProvider canonicalizeUriDataProvider
*/

View File

@ -191,7 +191,7 @@ class UrlResolver implements UrlResolverInterface {
* The oEmbed provider for the asset.
*
* @return string
* The resource url.
* The resource URL.
*/
protected function getEndpointMatchingUrl($url, Provider $provider) {
$endpoints = $provider->getEndpoints();

View File

@ -26,7 +26,7 @@ interface MenuLinkContentInterface extends ContentEntityInterface, EntityChanged
public function getTitle();
/**
* Gets the url object pointing to the URL of the menu link content entity.
* Gets the URL object pointing to the URL of the menu link content entity.
*
* @return \Drupal\Core\Url
* A Url object instance.

View File

@ -338,7 +338,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase {
$display['display_options']['rendering_language'] = '***LANGUAGE_entity_translation***';
$view->save();
// Need to check from the beginning, including the base_path, in the url
// Need to check from the beginning, including the base_path, in the URL
// since the pattern for the default language might be a substring of
// the strings for other languages.
$base_path = base_path();

View File

@ -69,7 +69,7 @@ class MigrateUrlAliasTest extends MigrateDrupal6TestBase {
}
/**
* Tests the url alias migration.
* Tests the URL alias migration.
*/
public function testUrlAlias() {
$id_map = $this->getMigration('d6_url_alias')->getIdMap();

View File

@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Routing\Route;
/**
* Defines a routes' callback to register an url for serving assets.
* Defines a routes' callback to register a URL for serving assets.
*/
class AssetRoutes implements ContainerInjectionInterface {

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -2,7 +2,7 @@
/**
* @file
* Helper module for the html mail and url conversion tests.
* Helper module for the html mail and URL conversion tests.
*/
/**

View File

@ -151,7 +151,7 @@ abstract class LinksetControllerTestBase extends BrowserTestBase {
}
/**
* Retrieve reference linkset controller output adjusted for proper base url.
* Retrieve reference linkset controller output adjusted for proper base URL.
*
* @param string $filename
* Name of the file to read.

View File

@ -156,7 +156,7 @@ class AdminTest extends BrowserTestBase {
// The front page defaults to 'user/login', which redirects to 'user/{user}'
// for authenticated users. We cannot use '<front>', since this does not
// match the redirected url.
// match the redirected URL.
$frontpage_url = 'user/' . $this->adminUser->id();
$this->drupalGet('admin/compact/on');

View File

@ -209,7 +209,7 @@ class MailTest extends KernelTestBase {
// One random tag name.
$tag_name = strtolower($random->name(8, TRUE));
// Test root relative urls.
// Test root relative URLs.
foreach (['href', 'src'] as $attribute) {
// Reset the state variable that holds sent messages.
\Drupal::state()->set('system.test_mail_collector', []);
@ -231,7 +231,7 @@ class MailTest extends KernelTestBase {
$this->assertSame($expected_html, $sent_message['body'], "Asserting that {$attribute} is properly converted for mails.");
}
// Test protocol relative urls.
// Test protocol relative URLs.
foreach (['href', 'src'] as $attribute) {
// Reset the state variable that holds sent messages.
\Drupal::state()->set('system.test_mail_collector', []);
@ -253,7 +253,7 @@ class MailTest extends KernelTestBase {
$this->assertSame($expected_html, $sent_message['body'], "Asserting that {$attribute} is properly converted for mails.");
}
// Test absolute urls.
// Test absolute URLs.
foreach (['href', 'src'] as $attribute) {
// Reset the state variable that holds sent messages.
\Drupal::state()->set('system.test_mail_collector', []);

View File

@ -55,7 +55,7 @@ class DbCommandBaseTest extends KernelTestBase {
}
/**
* Tests supplying database connection as a url.
* Tests supplying database connection as a URL.
*/
public function testSpecifyDbUrl() {
$command = new DbCommandBaseTester();

View File

@ -137,7 +137,7 @@ class TermAutocompleteTest extends TaxonomyTestBase {
$this->adminUser = $this->drupalCreateUser(['create article content']);
$this->drupalLogin($this->adminUser);
// Retrieve the autocomplete url.
// Retrieve the autocomplete URL.
$this->drupalGet('node/add/article');
$field = $this->assertSession()->fieldExists("{$this->fieldName}[0][target_id]");
$this->autocompleteUrl = $this->getAbsoluteUrl($field->getAttribute('data-autocomplete-path'));

View File

@ -301,7 +301,7 @@ class TaxonomyIndexTidUiTest extends UITestBase {
$this->submitForm($edit, 'Apply');
$this->submitForm([], 'Save');
// Visit the view's page url and validate the results.
// Visit the view's page URL and validate the results.
$this->drupalGet('/test-taxonomy-exposed-grouped-filter');
$this->submitForm(['field_views_testing_tags_target_id' => 1], 'Apply');
$this->assertSession()->pageTextContains($nodes[0]->getTitle());

View File

@ -22,10 +22,10 @@ class TaxonomyDefaultArgumentTest extends TaxonomyTestBase {
public static $testViews = ['taxonomy_default_argument_test'];
/**
* Init view with a request by provided url.
* Init view with a request by provided URL.
*
* @param string $request_url
* The requested url.
* The requested URL.
* @param string $view_name
* The name of the view.
*

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -36,7 +36,7 @@ module.exports = {
// To clear active tab/tray from previous tests
.execute(function () {
localStorage.clear();
// Clear escapeAdmin url values.
// Clear escapeAdmin URL values.
sessionStorage.clear();
})
.drupalRelativeURL('/')

View File

@ -44,7 +44,7 @@ module.exports = {
// To clear active tab/tray from previous tests
.execute(function () {
localStorage.clear();
// Clear escapeAdmin url values.
// Clear escapeAdmin URL values.
sessionStorage.clear();
})
.drupalRelativeURL('/')

View File

@ -19,10 +19,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
class TipPluginImageLegacy extends TipPluginBase implements ContainerFactoryPluginInterface {
/**
* The url which is used for the image in this Tip.
* The URL which is used for the image in this Tip.
*
* @var string
* A url used for the image.
* A URL used for the image.
*/
protected $url;

View File

@ -5,7 +5,7 @@
*
* Available variables:
* - title: The project title.
* - url: The project url.
* - url: The project URL.
* - status: The project status.
* - label: The project status label.
* - attributes: HTML attributes for the project status.

View File

@ -69,7 +69,7 @@ class UserName extends User {
*/
public function processSummaryArguments(&$args) {
// If the validation says the input is a username, we should reverse the
// argument so it works for example for generation summary urls.
// argument so it works for example for generation summary URLs.
$uids_arg_keys = array_flip($args);
foreach ($this->userStorage->loadMultiple($args) as $uid => $account) {

View File

@ -117,7 +117,7 @@ class UserAccountLinksTest extends BrowserTestBase {
}
/**
* Ensures that logout url redirects an anonymous user to the front page.
* Ensures that logout URL redirects an anonymous user to the front page.
*/
public function testAnonymousLogout() {
$this->drupalGet('user/logout');

View File

@ -119,7 +119,7 @@ class UserPasswordResetTest extends BrowserTestBase {
$resetURL = $this->getResetURL();
$this->drupalGet($resetURL);
// Ensure that the current url does not contain the hash and timestamp.
// Ensure that the current URL does not contain the hash and timestamp.
$this->assertSession()->addressEquals(Url::fromRoute('user.reset.form', ['uid' => $this->account->id()]));
$this->assertSession()->responseHeaderDoesNotExist('X-Drupal-Cache');

View File

@ -81,7 +81,7 @@
.slice(1)
.replace(/q=[^&]+&?|&?render=[^&]+/, '');
if (queryString !== '') {
// If there is a '?' in ajaxPath, clean url are on and & should be
// If there is a '?' in ajaxPath, clean URL are on and & should be
// used to add parameters.
queryString = (/\?/.test(ajaxPath) ? '&' : '?') + queryString;
}

View File

@ -51,7 +51,7 @@
Drupal.Views.parseViewArgs = function (href, viewPath) {
const returnObj = {};
const path = Drupal.Views.getPath(href);
// Get viewPath url without baseUrl portion.
// Get viewPath URL without baseUrl portion.
const viewHref = Drupal.url(viewPath).substring(
drupalSettings.path.baseUrl.length,
);
@ -96,7 +96,7 @@
Drupal.Views.getPath = function (href) {
href = Drupal.Views.pathPortion(href);
href = href.substring(drupalSettings.path.baseUrl.length, href.length);
// 3 is the length of the '?q=' added to the url without clean urls.
// 3 is the length of the '?q=' added to the URL without clean URLs.
if (href.substring(0, 3) === '?q=') {
href = href.substring(3, href.length);
}

View File

@ -73,7 +73,7 @@ class ViewsForm implements FormInterface, ContainerInjectionInterface {
* @param \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver
* The class resolver to get the subform form objects.
* @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
* The url generator to generate the form action.
* The URL generator to generate the form action.
* @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
* The request stack.
* @param string $view_id

View File

@ -2137,7 +2137,7 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayPluginInte
protected function getMoreUrl() {
$path = $this->getOption('link_url');
// Return the display URL if there is no custom url.
// Return the display URL if there is no custom URL.
if ($this->getOption('link_display') !== 'custom_url' || empty($path)) {
return $this->view->getUrl(NULL, $this->display['id']);
}
@ -2162,7 +2162,7 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayPluginInte
$path = $options['path'];
unset($options['path']);
// Create url.
// Create URL.
// @todo Views should expect and store a leading /. See:
// https://www.drupal.org/node/2423913
$url = UrlHelper::isExternal($path) ? Url::fromUri($path, $options) : Url::fromUserInput('/' . ltrim($path, '/'), $options);

View File

@ -588,7 +588,7 @@ interface DisplayPluginInterface {
* where you can configure what should be done if the argument does not
* exist.
* - description: A description about how arguments are passed
* to the display. For example blocks can't get arguments from url.
* to the display. For example blocks can't get arguments from URL.
*/
public function getArgumentText();

View File

@ -254,7 +254,7 @@ class ViewExecutable {
public $override_url;
/**
* Allow to override the path used for generated urls.
* Allow to override the path used for generated URLs.
*
* @var string
*/

View File

@ -229,7 +229,7 @@ class DisplayTest extends ViewTestBase {
$output = $renderer->renderRoot($output);
$this->assertStringContainsString('/node', $output, 'The read more link with href "/node" was found.');
// Test more link with absolute url.
// Test more link with absolute URL.
$view->display_handler->setOption('link_display', 'custom_url');
$view->display_handler->setOption('link_url', 'http://drupal.org');
$this->executeView($view);
@ -237,7 +237,7 @@ class DisplayTest extends ViewTestBase {
$output = $renderer->renderRoot($output);
$this->assertStringContainsString('http://drupal.org', $output, 'The read more link with href "http://drupal.org" was found.');
// Test more link with query parameters in the url.
// Test more link with query parameters in the URL.
$view->display_handler->setOption('link_display', 'custom_url');
$view->display_handler->setOption('link_url', 'node?page=1&foo=bar');
$this->executeView($view);
@ -245,7 +245,7 @@ class DisplayTest extends ViewTestBase {
$output = $renderer->renderRoot($output);
$this->assertStringContainsString('/node?page=1&amp;foo=bar', $output, 'The read more link with href "/node?page=1&foo=bar" was found.');
// Test more link with fragment in the url.
// Test more link with fragment in the URL.
$view->display_handler->setOption('link_display', 'custom_url');
$view->display_handler->setOption('link_url', 'node#target');
$this->executeView($view);

View File

@ -324,7 +324,7 @@ class ViewEditForm extends ViewFormBase {
$destination = $query->get('destination');
if (!empty($destination)) {
// Find out the first display which has a changed path and redirect to this url.
// Find out the first display which has a changed path and redirect to this URL.
$old_view = Views::getView($view->id());
$old_view->initDisplay();
foreach ($old_view->displayHandlers as $id => $display) {

View File

@ -93,7 +93,7 @@ class DisplayPathTest extends UITestBase {
$this->assertSession()->assertEscaped('/<object>malformed_path</object>');
$this->assertSession()->assertEscaped('/<script>alert("hello");</script>');
$this->assertSession()->assertEscaped('/<script>alert("hello I have placeholders %");</script>');
// Links should be url-encoded.
// Links should be URL-encoded.
$this->assertSession()->responseContains('/%3Cobject%3Emalformed_path%3C/object%3E');
$this->assertSession()->responseContains('/%3Cscript%3Ealert%28%22hello%22%29%3B%3C/script%3E');
}

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -138,7 +138,7 @@ abstract class UpdatePathTestBase extends BrowserTestBase {
$kernel = TestRunnerKernel::createFromRequest($request, $autoloader);
$kernel->loadLegacyIncludes();
// Set the update url. This must be set here rather than in
// Set the update URL. This must be set here rather than in
// self::__construct() or the old URL generator will leak additional test
// sites. Additionally, we need to prevent the path alias processor from
// running because we might not have a working alias system before running

View File

@ -548,7 +548,7 @@ abstract class BrowserTestBase extends TestCase {
// as expected.
$this->container->get('cache_tags.invalidator')->resetChecksums();
// Generate a route to prime the url generator with the correct base url.
// Generate a route to prime the URL generator with the correct base URL.
// @todo Remove in https://www.drupal.org/project/drupal/issues/3207896.
Url::fromRoute('<front>')->setAbsolute()->toString();

View File

@ -541,10 +541,10 @@ class UrlHelperTest extends TestCase {
}
/**
* Enhances test urls with schemes.
* Enhances test URLs with schemes.
*
* @param array $urls
* The list of urls.
* The list of URLs.
*
* @return array
* A list of provider data with schemes.
@ -561,10 +561,10 @@ class UrlHelperTest extends TestCase {
}
/**
* Enhances test urls with prefixes.
* Enhances test URLs with prefixes.
*
* @param array $urls
* The list of urls.
* The list of URLs.
*
* @return array
* A list of provider data with prefixes.
@ -581,7 +581,7 @@ class UrlHelperTest extends TestCase {
}
/**
* Tests detecting external urls that point to local resources.
* Tests detecting external URLs that point to local resources.
*
* @param string $url
* The external URL to test.
@ -661,7 +661,7 @@ class UrlHelperTest extends TestCase {
['http://example.com/foo', ''],
['http://example.com/foo', 'bar'],
['http://example.com/foo', 'http://'],
// Invalid destination urls.
// Invalid destination URLs.
['', 'http://example.com/foo'],
['bar', 'http://example.com/foo'],
['/bar', 'http://example.com/foo'],

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -12,7 +12,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -5,7 +5,7 @@
*
* Available variables:
* - title: The project title.
* - url: The project url.
* - url: The project URL.
* - status: The project status.
* - label: The project status label.
* - attributes: HTML attributes for the project status.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.

View File

@ -9,7 +9,7 @@
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
* - title: The menu link title.
* - url: The menu link url, instance of \Drupal\Core\Url
* - url: The menu link URL, instance of \Drupal\Core\Url
* - localized_options: Menu link localized options.
* - is_expanded: TRUE if the link has visible children within the current
* menu tree.