Commit f9b6f976 authored by xjm's avatar xjm

Issue #2489912 by mikeburrelljr, opdavies, larowlan: Update Drupal.org URL in core modules

parent 7e702149
......@@ -39,7 +39,7 @@ public function testValidation() {
// Add feed.
$feed = Feed::create([
'title' => 'Feed 1',
'url' => 'http://drupal.org/planet/rss',
'url' => 'https://www.drupal.org/planet/rss.xml',
'refresh' => 900,
]);
......@@ -52,7 +52,7 @@ public function testValidation() {
/* @var \Drupal\aggregator\FeedInterface $feed */
$feed = Feed::create([
'title' => 'Feed 1',
'url' => 'http://drupal.org/planet/rss',
'url' => 'https://www.drupal.org/planet/rss.xml',
'refresh' => 900,
]);
......
......@@ -68,7 +68,7 @@ protected function setUp() {
public function testAggregatorItemView() {
$feed = $this->feedStorage->create(array(
'title' => $this->randomMachineName(),
'url' => 'http://drupal.org/',
'url' => 'https://www.drupal.org/',
'refresh' => 900,
'checked' => 123543535,
'description' => $this->randomMachineName(),
......@@ -85,7 +85,7 @@ public function testAggregatorItemView() {
$values['description'] = $this->randomMachineName();
// Add a image to ensure that the sanitizing can be tested below.
$values['author'] = $this->randomMachineName() . '<img src="http://example.com/example.png" \>"';
$values['link'] = 'http://drupal.org/node/' . mt_rand(1000, 10000);
$values['link'] = 'https://www.drupal.org/node/' . mt_rand(1000, 10000);
$values['guid'] = $this->randomString();
$aggregator_item = $this->itemStorage->create($values);
......
......@@ -55,7 +55,7 @@
* Comments changed after this time may be marked new, updated, or read,
* depending on their state for the current user. Defaults to 30 days ago.
*
* @todo Remove when http://drupal.org/node/1029708 lands.
* @todo Remove when https://www.drupal.org/node/1029708 lands.
*/
define('COMMENT_NEW_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60);
......@@ -203,8 +203,8 @@ function comment_node_links_alter(array &$node_links, NodeInterface $node, array
// Comment links are only added to node entity type for backwards
// compatibility. Should you require comment links for other entity types you
// can do so by implementing a new field formatter.
// @todo Make this configurable from the formatter see
// http://drupal.org/node/1901110
// @todo Make this configurable from the formatter. See
// https://www.drupal.org/node/1901110.
$links = \Drupal::service('comment.link_builder')->buildCommentedEntityLinks($node, $context);
$node_links += $links;
......
......@@ -18,7 +18,7 @@ function comment_token_info() {
'needs-data' => 'comment',
);
// @todo Make this work per field. See http://drupal.org/node/2031903
// @todo Make this work per field. See https://www.drupal.org/node/2031903.
$entity['comment-count'] = array(
'name' => t("Comment count"),
'description' => t("The number of comments posted on an entity."),
......
......@@ -195,7 +195,7 @@ public function forbiddenMessage(EntityInterface $entity, $field_name) {
*/
public function getCountNewComments(EntityInterface $entity, $field_name = NULL, $timestamp = 0) {
// @todo Replace module handler with optional history service injection
// after http://drupal.org/node/2081585
// after https://www.drupal.org/node/2081585.
if ($this->currentUser->isAuthenticated() && $this->moduleHandler->moduleExists('history')) {
// Retrieve the timestamp at which the current user last viewed this entity.
if (!$timestamp) {
......@@ -209,7 +209,7 @@ public function getCountNewComments(EntityInterface $entity, $field_name = NULL,
}
else {
// Default to 30 days ago.
// @todo Remove once http://drupal.org/node/1029708 lands.
// @todo Remove once https://www.drupal.org/node/1029708 lands.
$timestamp = COMMENT_NEW_LIMIT;
}
}
......
......@@ -16,7 +16,7 @@ function config_help($route_name, RouteMatchInterface $route_match) {
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Configuration manager module provides a user interface for importing and exporting configuration changes; i.e., for staging configuration data between multiple instances of this web site. For more information, see the online handbook entry for <a href="!url">Configuration manager module</a>', array(
'!url' => 'http://drupal.org/documentation/administer/config',
'!url' => 'https://www.drupal.org/documentation/administer/config',
)) . '</p>';
return $output;
......
......@@ -20,7 +20,7 @@ function dblog_help($route_name, RouteMatchInterface $route_match) {
case 'help.page.dblog':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Database Logging module logs system events in the Drupal database. For more information, see the online handbook entry for the <a href="!dblog">Database Logging module</a>.', array('!dblog' => 'http://drupal.org/documentation/modules/dblog')) . '</p>';
$output .= '<p>' . t('The Database Logging module logs system events in the Drupal database. For more information, see the online handbook entry for the <a href="!dblog">Database Logging module</a>.', array('!dblog' => 'https://www.drupal.org/documentation/modules/dblog')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Monitoring your site') . '</dt>';
......
......@@ -68,7 +68,7 @@ function editor_element_info_alter(&$types) {
* Implements hook_form_FORM_ID_alter().
*/
function editor_form_filter_admin_overview_alter(&$form, FormStateInterface $form_state) {
// @todo Cleanup column injection: http://drupal.org/node/1876718
// @todo Cleanup column injection: https://www.drupal.org/node/1876718.
// Splice in the column for "Text editor" into the header.
$position = array_search('name', $form['formats']['#header']) + 1;
$start = array_splice($form['formats']['#header'], 0, $position, array('editor' => t('Text editor')));
......
......@@ -111,7 +111,7 @@ public function form(array $form, FormStateInterface $form_state) {
'#suffix' => '</div>',
// This item is used as a pure wrapping container with heading. Ignore its
// value, since 'filters' should only contain filter definitions.
// @see http://drupal.org/node/1829202
// See https://www.drupal.org/node/1829202.
'#input' => FALSE,
);
// Filter order (tabledrag).
......
......@@ -67,9 +67,9 @@ function testCheckMarkupFilterOrder() {
* Tests the ability to apply only a subset of filters.
*/
function testCheckMarkupFilterSubset() {
$text = "Text with <marquee>evil content and</marquee> a URL: http://drupal.org!";
$expected_filtered_text = "Text with evil content and a URL: <a href=\"http://drupal.org\">http://drupal.org</a>!";
$expected_filter_text_without_html_generators = "Text with evil content and a URL: http://drupal.org!";
$text = "Text with <marquee>evil content and</marquee> a URL: https://www.drupal.org!";
$expected_filtered_text = "Text with evil content and a URL: <a href=\"https://www.drupal.org\">https://www.drupal.org</a>!";
$expected_filter_text_without_html_generators = "Text with evil content and a URL: https://www.drupal.org!";
$actual_filtered_text = check_markup($text, 'filtered_html', '', array());
$this->verbose("Actual:<pre>$actual_filtered_text</pre>Expected:<pre>$expected_filtered_text</pre>");
......
......@@ -205,20 +205,20 @@ function testCaptionFilter() {
// All the tricky cases encountered at https://drupal.org/node/2105841.
// A plain URL preceded by text.
$input = '<img data-caption="See http://drupal.org" src="llama.jpg" />';
$expected = '<figure><img src="llama.jpg" /><figcaption>See http://drupal.org</figcaption></figure>';
$input = '<img data-caption="See https://www.drupal.org" src="llama.jpg" />';
$expected = '<figure><img src="llama.jpg" /><figcaption>See https://www.drupal.org</figcaption></figure>';
$this->assertIdentical($expected, $test_with_html_filter($input));
$this->assertIdentical($input, $test_editor_xss_filter($input));
// An anchor.
$input = '<img data-caption="This is a &lt;a href=&quot;http://drupal.org&quot;&gt;quick&lt;/a&gt; test…" src="llama.jpg" />';
$expected = '<figure><img src="llama.jpg" /><figcaption>This is a <a href="http://drupal.org">quick</a> test…</figcaption></figure>';
$input = '<img data-caption="This is a &lt;a href=&quot;https://www.drupal.org&quot;&gt;quick&lt;/a&gt; test…" src="llama.jpg" />';
$expected = '<figure><img src="llama.jpg" /><figcaption>This is a <a href="https://www.drupal.org">quick</a> test…</figcaption></figure>';
$this->assertIdentical($expected, $test_with_html_filter($input));
$this->assertIdentical($input, $test_editor_xss_filter($input));
// A plain URL surrounded by parentheses.
$input = '<img data-caption="(http://drupal.org)" src="llama.jpg" />';
$expected = '<figure><img src="llama.jpg" /><figcaption>(http://drupal.org)</figcaption></figure>';
$input = '<img data-caption="(https://www.drupal.org)" src="llama.jpg" />';
$expected = '<figure><img src="llama.jpg" /><figcaption>(https://www.drupal.org)</figcaption></figure>';
$this->assertIdentical($expected, $test_with_html_filter($input));
$this->assertIdentical($input, $test_editor_xss_filter($input));
......
......@@ -100,7 +100,7 @@
* @endcode
*
* For more information, see
* @link http://drupal.org/node/1497272 Language Negotiation API @endlink
* @link https://www.drupal.org/node/1497272 Language Negotiation API @endlink
*/
interface LanguageNegotiatorInterface {
......
......@@ -7,7 +7,7 @@
* @todo
* Merge into 'link' formatter once there is a #type like 'item' that
* can render a compound label and content outside of a form context.
* http://drupal.org/node/1829202
* @see https://www.drupal.org/node/1829202
*/
namespace Drupal\link\Plugin\Field\FieldFormatter;
......
......@@ -82,7 +82,7 @@ public function testLinkItem() {
$this->assertEqual($entity->field_test->options['query'], $parsed_url['query']);
// Verify changing the field value.
$new_url = 'http://drupal.org';
$new_url = 'https://www.drupal.org';
$new_title = $this->randomMachineName();
$new_class = $this->randomMachineName();
$entity->field_test->uri = $new_url;
......
......@@ -11,7 +11,7 @@
* Load the common translation API.
*/
// @todo Combine functions differently in files to avoid unnecessary includes.
// Follow-up issue http://drupal.org/node/1834298
// Follow-up issue: https://www.drupal.org/node/1834298.
require_once __DIR__ . '/locale.translation.inc';
/**
......
......@@ -34,7 +34,7 @@
* @todo
* Integrate with update status to identify projects needed and integrate
* l10n_update functionality to feed in translation files alike.
* See http://drupal.org/node/1191488.
* See https://www.drupal.org/node/1191488.
*/
function locale_translate_batch_import_files(array $options, $force = FALSE) {
$options += array(
......@@ -217,7 +217,7 @@ function locale_translate_batch_import($file, array $options, array &$context) {
// Maximize the progress bar at 95% before completion, the batch API
// could trigger the end of the operation before file reading is done,
// because of floating point inaccuracies. See
// http://drupal.org/node/1089472
// https://www.drupal.org/node/1089472.
$context['finished'] = min(0.95, $report['seek'] / filesize($file->uri));
if (isset($options['message'])) {
$context['message'] = t('!message (@percent%).', array('!message' => $options['message'], '@percent' => (int) ($context['finished'] * 100)));
......
......@@ -12,7 +12,7 @@
* Load common APIs.
*/
// @todo Combine functions differently in files to avoid unnecessary includes.
// Follow-up issue http://drupal.org/node/1834298
// Follow-up issue: https://www.drupal.org/node/1834298.
require_once __DIR__ . '/locale.translation.inc';
/**
......@@ -70,7 +70,7 @@ function locale_translation_build_projects() {
// dev release is the one. Releases are sorted the most recent first.
// For example the major release number for a contrib module
// 8.x-2.x-dev is "2", for core 8.1.0-dev is "8".
// @todo http://drupal.org/node/1774024 Make a helper function.
// @todo https://www.drupal.org/node/1774024 Make a helper function.
if ($project_release['version_major'] == $matches[1] &&
(!isset($project_release['version_extra']) || $project_release['version_extra'] != 'dev')) {
$release = $project_release;
......
......@@ -9,7 +9,7 @@
* Load the common translation API.
*/
// @todo Combine functions differently in files to avoid unnecessary includes.
// Follow-up issue http://drupal.org/node/1834298
// Follow-up issue: https://www.drupal.org/node/1834298.
require_once __DIR__ . '/locale.translation.inc';
/**
......
......@@ -199,7 +199,8 @@ function locale_theme() {
* Implements hook_ENTITY_TYPE_insert() for 'configurable_language'.
*/
function locale_configurable_language_insert(ConfigurableLanguageInterface $language) {
// @todo move these two cache clears out. See http://drupal.org/node/1293252
// @todo move these two cache clears out. See
// https://www.drupal.org/node/1293252.
// Changing the language settings impacts the interface: clear render cache.
\Drupal::cache('render')->deleteAll();
// Force JavaScript translation file re-creation for the new language.
......@@ -210,7 +211,8 @@ function locale_configurable_language_insert(ConfigurableLanguageInterface $lang
* Implements hook_ENTITY_TYPE_update() for 'configurable_language'.
*/
function locale_configurable_language_update(ConfigurableLanguageInterface $language) {
// @todo move these two cache clears out. See http://drupal.org/node/1293252
// @todo move these two cache clears out. See
// https://www.drupal.org/node/1293252.
// Changing the language settings impacts the interface: clear render cache.
\Drupal::cache('render')->deleteAll();
// Force JavaScript translation file re-creation for the modified language.
......@@ -465,7 +467,7 @@ function locale_system_remove($components) {
locale_translate_delete_translation_files($list, array());
// Remove translatable projects.
// Followup issue http://drupal.org/node/1842362 to replace the
// Follow-up issue https://www.drupal.org/node/1842362 to replace the
// {locale_project} table. Then change this to a function call.
\Drupal::service('locale.project')->deleteMultiple($list);
......@@ -487,7 +489,7 @@ function locale_cache_flush() {
* Implements hook_js_alter().
*/
function locale_js_alter(&$javascript, AttachedAssetsInterface $assets) {
// @todo remove this in https://www.drupal.org/node/2421323
// @todo Remove this in https://www.drupal.org/node/2421323.
$files = array();
foreach ($javascript as $item) {
if (isset($item['type']) && $item['type'] == 'file') {
......@@ -919,7 +921,7 @@ function locale_translation_get_status($projects = NULL, $langcodes = NULL) {
* File object also containing timestamp when the translation is last updated.
*/
function locale_translation_status_save($project, $langcode, $type, $data) {
// Followup issue: http://drupal.org/node/1842362
// Follow-up issue: https://www.drupal.org/node/1842362.
// Split status storage per module/language and expire individually. This will
// improve performance for large sites.
......
......@@ -58,8 +58,8 @@ function locale_translation_get_projects(array $project_names = array()) {
if (empty($projects)) {
// Get project data from the database.
$row_count = \Drupal::service('locale.project')->countProjects();
// http://drupal.org/node/1777106 is a follow-up issue to make the check for
// possible out-of-date project information more robust.
// https://www.drupal.org/node/1777106 is a follow-up issue to make the
// check for possible out-of-date project information more robust.
if ($row_count == 0 && \Drupal::moduleHandler()->moduleExists('update')) {
module_load_include('compare.inc', 'locale');
// At least the core project should be in the database, so we build the
......@@ -226,7 +226,7 @@ function locale_translation_source_check_file($source) {
* - "keep": TRUE to keep the downloaded file.
*/
function locale_translation_source_build($project, $langcode, $filename = NULL) {
// Followup issue: http://drupal.org/node/1842380
// Follow-up issue: https://www.drupal.org/node/1842380.
// Convert $source object to a TranslatableProject class and use a typed class
// for $source-file.
......
......@@ -193,8 +193,9 @@ protected function prepareUpdateData(array $status) {
$updates = array();
// @todo Calling locale_translation_build_projects() is an expensive way to
// get a module name. In follow-up issue http://drupal.org/node/1842362
// the project name will be stored to display use, like here.
// get a module name. In follow-up issue
// https://www.drupal.org/node/1842362 the project name will be stored to
// display use, like here.
$this->moduleHandler->loadInclude('locale', 'compare.inc');
$project_data = locale_translation_build_projects();
......
......@@ -442,7 +442,7 @@ protected function submitOverviewForm(array $complete_form, FormStateInterface $
// the child item could be saved with an invalid path past its immediate
// parent. To prevent this, save items in the form in the same order they
// are sent, ensuring parents are saved first, then their children.
// See http://drupal.org/node/181126#comment-632270
// See https://www.drupal.org/node/181126#comment-632270.
$order = is_array($input) ? array_flip(array_keys($input)) : array();
// Update our original form with the new order.
$form = array_intersect_key(array_merge($order, $form), $form);
......
......@@ -450,8 +450,8 @@ function doMenuTests() {
$this->assertMenuLink($item1->getPluginId(), array('enabled' => 1));
// Add an external link.
$item7 = $this->addMenuLink('', 'http://drupal.org', $menu_name);
$this->assertMenuLink($item7->getPluginId(), array('url' => 'http://drupal.org'));
$item7 = $this->addMenuLink('', 'https://www.drupal.org', $menu_name);
$this->assertMenuLink($item7->getPluginId(), array('url' => 'https://www.drupal.org'));
// Add <front> menu item.
$item8 = $this->addMenuLink('', '/', $menu_name);
......
......@@ -136,7 +136,7 @@ public function load() {
'thread' => '01/',
'name' => '1st comment author name',
'mail' => 'comment1@example.com',
'homepage' => 'http://drupal.org',
'homepage' => 'https://www.drupal.org',
))->values(array(
'cid' => '2',
'pid' => '3',
......@@ -151,7 +151,7 @@ public function load() {
'thread' => '02/01',
'name' => '3rd comment author name',
'mail' => 'comment3@example.com',
'homepage' => 'http://drupal.org',
'homepage' => 'https://www.drupal.org',
))->values(array(
'cid' => '3',
'pid' => '0',
......@@ -166,7 +166,7 @@ public function load() {
'thread' => '02/',
'name' => '3rd comment author name',
'mail' => 'comment3@example.com',
'homepage' => 'http://drupal.org',
'homepage' => 'https://www.drupal.org',
))->execute();
}
......
......@@ -279,7 +279,7 @@ public function load() {
'weight' => '7',
'label' => 'Link Field',
'widget_type' => 'link',
'widget_settings' => 'a:2:{s:13:"default_value";a:1:{i:0;a:2:{s:5:"title";s:18:"default link title";s:3:"url";s:17:"http://drupal.org";}}s:17:"default_value_php";N;}',
'widget_settings' => 'a:2:{s:13:"default_value";a:1:{i:0;a:2:{s:5:"title";s:18:"default link title";s:3:"url";s:22:"https://www.drupal.org";}}s:17:"default_value_php";N;}',
'display_settings' => 'a:7:{s:6:"weight";s:1:"7";s:6:"parent";s:0:"";i:5;a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:1;}s:5:"label";a:1:{s:6:"format";s:5:"above";}s:6:"teaser";a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}s:4:"full";a:2:{s:6:"format";s:8:"absolute";s:7:"exclude";i:0;}i:4;a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}}',
'description' => 'An example link field.',
'widget_module' => 'link',
......
......@@ -207,7 +207,7 @@ public function load() {
'field_test_three_value' => '42.42',
'field_test_identical1_value' => '1',
'field_test_identical2_value' => '1',
'field_test_link_url' => 'http://drupal.org/project/drupal',
'field_test_link_url' => 'https://www.drupal.org/project/drupal',
'field_test_link_title' => 'Drupal project page',
'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";',
'field_test_date_value' => NULL,
......@@ -235,7 +235,7 @@ public function load() {
'field_test_three_value' => '42.42',
'field_test_identical1_value' => '1',
'field_test_identical2_value' => '1',
'field_test_link_url' => 'http://drupal.org/project/drupal',
'field_test_link_url' => 'https://www.drupal.org/project/drupal',
'field_test_link_title' => 'Drupal project page',
'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";',
'field_test_date_value' => NULL,
......
......@@ -399,7 +399,7 @@ public function load() {
'menu_name' => 'secondary-links',
'mlid' => '140',
'plid' => '0',
'link_path' => 'http://drupal.org',
'link_path' => 'https://www.drupal.org',
'router_path' => '',
'link_title' => 'Drupal.org',
'options' => 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:0:"";}}',
......
......@@ -185,7 +185,7 @@ public function testCckFields() {
$this->assertIdentical('This is a field with exclude unset.', $node->field_test_exclude_unset->value, 'Field with exclude unset is correct.');
// Test that link fields are migrated.
$this->assertIdentical('http://drupal.org/project/drupal', $node->field_test_link->uri);
$this->assertIdentical('https://www.drupal.org/project/drupal', $node->field_test_link->uri);
$this->assertIdentical('Drupal project page', $node->field_test_link->title);
$this->assertIdentical(['target' => '_blank'], $node->field_test_link->options['attributes']);
......
......@@ -153,7 +153,7 @@ public function testFieldInstanceSettings() {
$expected = array('title' => 2, 'link_type' => LinkItemInterface::LINK_GENERIC);
$this->assertIdentical($expected, $field->getSettings());
$this->assertIdentical('default link title', $entity->field_test_link->title, 'Field field_test_link default title is correct.');
$this->assertIdentical('http://drupal.org', $entity->field_test_link->url, 'Field field_test_link default title is correct.');
$this->assertIdentical('https://www.drupal.org', $entity->field_test_link->url, 'Field field_test_link default title is correct.');
$this->assertIdentical([], $entity->field_test_link->options['attributes']);
}
......
......@@ -80,7 +80,7 @@ public function testMenuLinks() {
$this->assertIdentical(TRUE, $menu_link->isEnabled());
$this->assertIdentical(FALSE, $menu_link->isExpanded());
$this->assertIdentical(['attributes' => ['title' => '']], $menu_link->link->options);
$this->assertIdentical('http://drupal.org', $menu_link->link->uri);
$this->assertIdentical('https://www.drupal.org', $menu_link->link->uri);
$this->assertIdentical(0, $menu_link->getWeight());
}
......
......@@ -71,7 +71,7 @@ protected function setUp() {
/**
* Provides a workaround for the inability to use the standard profile.
*
* @see http://drupal.org/node/1708692
* @see https://www.drupal.org/node/1708692
*/
protected function mockStandardInstall() {
$this->installEntitySchema('user');
......
......@@ -130,7 +130,7 @@ public function buildForm(array $form, FormStateInterface $form_state, EntityInt
*/
protected function init(FormStateInterface $form_state, EntityInterface $entity, $field_name) {
// @todo Rather than special-casing $node->revision, invoke prepareEdit()
// once http://drupal.org/node/1863258 lands.
// once https://www.drupal.org/node/1863258 lands.
if ($entity->getEntityTypeId() == 'node') {
$node_type = $this->nodeTypeStorage->load($entity->bundle());
$entity->setNewRevision($node_type->isNewRevision());
......@@ -199,7 +199,7 @@ protected function buildEntity(array $form, FormStateInterface $form_state) {
$form_state->get('form_display')->extractFormValues($entity, $form, $form_state);
// @todo Refine automated log messages and abstract them to all entity
// types: http://drupal.org/node/1678002.
// types: https://www.drupal.org/node/1678002.
if ($entity->getEntityTypeId() == 'node' && $entity->isNewRevision() && $entity->revision_log->isEmpty()) {
$entity->revision_log = t('Updated the %field-name field through in-place editing.', array('%field-name' => $entity->get($field_name)->getFieldDefinition()->getLabel()));
}
......
......@@ -82,7 +82,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
$default_uris = array(
'canonical' => "/entity/$entity_type_id/" . '{' . $entity_type_id . '}',
'http://drupal.org/link-relations/create' => "/entity/$entity_type_id",
'https://www.drupal.org/link-relations/create' => "/entity/$entity_type_id",
);
foreach ($default_uris as $link_relation => $default_uri) {
......
......@@ -101,7 +101,7 @@ public function routes() {
$definition = $this->getPluginDefinition();
$canonical_path = isset($definition['uri_paths']['canonical']) ? $definition['uri_paths']['canonical'] : '/' . strtr($this->pluginId, ':', '/') . '/{id}';
$create_path = isset($definition['uri_paths']['http://drupal.org/link-relations/create']) ? $definition['uri_paths']['http://drupal.org/link-relations/create'] : '/' . strtr($this->pluginId, ':', '/');
$create_path = isset($definition['uri_paths']['https://www.drupal.org/link-relations/create']) ? $definition['uri_paths']['https://www.drupal.org/link-relations/create'] : '/' . strtr($this->pluginId, ':', '/');
$route_name = strtr($this->pluginId, ':', '.');
......
......@@ -26,7 +26,7 @@
* deriver = "Drupal\rest\Plugin\Deriver\EntityDeriver",
* uri_paths = {
* "canonical" = "/entity/{entity_type}/{entity}",
* "http://drupal.org/link-relations/create" = "/entity/{entity_type}"
* "https://www.drupal.org/link-relations/create" = "/entity/{entity_type}"
* }
* )
*
......
......@@ -20,7 +20,7 @@ function shortcut_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.shortcut':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Shortcut module allows users to create sets of <em>shortcut</em> links to commonly-visited pages of the site. Shortcuts are contained within <em>sets</em>. Each user with <em>Select any shortcut set</em> permission can select a shortcut set created by anyone at the site. For more information, see the <a href="!shortcut">online documentation for the Shortcut module</a>.', array('!shortcut' => 'http://drupal.org/documentation/modules/shortcut')) . '</p>';
$output .= '<p>' . t('The Shortcut module allows users to create sets of <em>shortcut</em> links to commonly-visited pages of the site. Shortcuts are contained within <em>sets</em>. Each user with <em>Select any shortcut set</em> permission can select a shortcut set created by anyone at the site. For more information, see the <a href="!shortcut">online documentation for the Shortcut module</a>.', array('!shortcut' => 'https://www.drupal.org/documentation/modules/shortcut')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl><dt>' . t('Administering shortcuts') . '</dt>';
$output .= '<dd>' . t('Users with the <em>Administer shortcuts</em> permission can manage shortcut sets and edit the shortcuts within sets from the <a href="!shortcuts">Shortcuts administration page</a>.', array('!shortcuts' => \Drupal::url('entity.shortcut_set.collection'))) . '</dd>';
......
......@@ -42,7 +42,7 @@ function simpletest_requirements($phase) {
// SimpleTest currently needs 2 cURL options which are incompatible with
// having PHP's open_basedir restriction set.
// See http://drupal.org/node/674304.
// See https://www.drupal.org/node/674304.
$requirements['php_open_basedir'] = array(
'title' => t('PHP open_basedir restriction'),
'value' => $open_basedir ? t('Enabled') : t('Disabled'),
......@@ -57,7 +57,7 @@ function simpletest_requirements($phase) {
$memory_limit = ini_get('memory_limit');
if (!Environment::checkMemoryLimit(SIMPLETEST_MINIMUM_PHP_MEMORY_LIMIT, $memory_limit)) {
$requirements['php_memory_limit']['severity'] = REQUIREMENT_WARNING;
$requirements['php_memory_limit']['description'] = t('The testing framework requires the PHP memory limit to be at least %memory_minimum_limit. The current value is %memory_limit. <a href="@url">Follow these steps to continue</a>.', array('%memory_limit' => $memory_limit, '%memory_minimum_limit' => SIMPLETEST_MINIMUM_PHP_MEMORY_LIMIT, '@url' => 'http://drupal.org/node/207036'));
$requirements['php_memory_limit']['description'] = t('The testing framework requires the PHP memory limit to be at least %memory_minimum_limit. The current value is %memory_limit. <a href="@url">Follow these steps to continue</a>.', array('%memory_limit' => $memory_limit, '%memory_minimum_limit' => SIMPLETEST_MINIMUM_PHP_MEMORY_LIMIT, '@url' => 'https://www.drupal.org/node/207036'));
}
$site_directory = 'sites/simpletest';
......
......@@ -213,7 +213,7 @@
* if you had a connection object variable $connection available to use. See
* also the @link container Services and Dependency Injection topic. @endlink
*
* @see http://drupal.org/developing/api/database
* @see https://www.drupal.org/developing/api/database
* @see entity_api
* @see schemaapi
*
......@@ -466,8 +466,8 @@ function hook_query_TAG_alter(Drupal\Core\Database\Query\AlterableInterface $que
* engines. You don't have to deal with the different SQL dialects for table
* creation and alteration of the supported database engines.
*
* See the Schema API Handbook at http://drupal.org/node/146843 for details on
* schema definition structures.
* See the Schema API Handbook at https://www.drupal.org/node/146843 for details
* on schema definition structures.
*
* @return array
* A schema definition structure array. For each element of the
......
......@@ -150,8 +150,8 @@ function hook_modules_installed($modules) {
* this, any time a hook_update_N() is added to the module, this function needs
* to be updated to reflect the current version of the database schema.
*
* See the @link http://drupal.org/node/146843 Schema API documentation @endlink
* for details on hook_schema and how database tables are defined.
* See the @link https://www.drupal.org/node/146843 Schema API documentation
* @endlink for details on hook_schema and how database tables are defined.
*
* Note that since this function is called from a full bootstrap, all functions
* (including those in modules enabled by the current page request) are
......@@ -426,7 +426,7 @@ function hook_install_tasks_alter(&$tasks, $install_state) {
* update.php. The documentation block preceding this function is stripped of
* newlines and used as the description for the update on the pending updates
* task list. Schema updates should adhere to the
* @link http://drupal.org/node/150215 Schema API. @endlink
* @link https://www.drupal.org/node/150215 Schema API. @endlink
*
* Implementations of hook_update_N() are named (module name)_update_(number).
* The numbers are composed of three parts:
......@@ -451,7 +451,8 @@ function hook_install_tasks_alter(&$tasks, $install_state) {
* migrate data from an earlier major version of Drupal.
*
* For further information about releases and release numbers see:
* @link http://drupal.org/node/711070 Maintaining a drupal.org project with Git @endlink
* @link https://www.drupal.org/node/711070 Maintaining a drupal.org project
* with Git @endlink
*
* Never renumber update functions.
*
......@@ -764,7 +765,7 @@ function hook_requirements($phase) {
}
else {
$requirements['cron'] = array(
'description' => t('Cron has not run. It appears cron jobs have not been setup on your system. Check the help pages for <a href="@url">configuring cron jobs</a>.', array('@url' => 'http://drupal.org/cron')),
'description' => t('Cron has not run. It appears cron jobs have not been setup on your system. Check the help pages for <a href="@url">configuring cron jobs</a>.', array('@url' => 'https://www.drupal.org/cron')),
'severity' => REQUIREMENT_ERROR,
'value' => t('Never run'),
);
......
......@@ -215,7 +215,7 @@ protected function info() {
$this->keyValueExpirableFactory->get('update_available_release')->deleteAll();
$build['info_header'] = array(
'#markup' => '<p>' . $this->t('Use this utility to update your database whenever a new release of Drupal or a module is installed.') . '</p><p>' . $this->t('For more detailed information, see the <a href="http://drupal.org/upgrade">upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.') . '</p>',
'#markup' => '<p>' . $this->t('Use this utility to update your database whenever a new release of Drupal or a module is installed.') . '</p><p>' . $this->t('For more detailed information, see the <a href="https://www.drupal.org/upgrade">upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.') . '</p>',
);
$info[] = $this->t("<strong>Back up your code</strong>. Hint: when backing up module code, do not leave that backup in the 'modules' or 'sites/*/modules' directories as this may confuse Drupal's auto-discovery mechanism.");
......
......@@ -120,7 +120,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form['cron']['cron_safe_threshold'] = array(
'#type' => 'select',
'#title' => t('Run cron every'),
'#description' => t('More information about setting up scheduled tasks can be found by <a href="@url">reading the cron tutorial on drupal.org</a>.', array('@url' => 'http://drupal.org/cron')),
'#description' => t('More information about setting up scheduled tasks can be found by <a href="@url">reading the cron tutorial on drupal.org</a>.', array('@url' => 'https://www.drupal.org/cron')),
'#default_value' => $config->get('threshold.autorun'),
'#options' => array(0 => t('Never')) + array_map(array($this->dateFormatter, 'formatInterval'), array_combine($options, $options)),
);
......
......@@ -142,7 +142,7 @@ function testDrupalFormSubmitInBatch() {
/**
* Tests batches that return $context['finished'] > 1 do in fact complete.
*
* @see http://drupal.org/node/600836
* @see https://www.drupal.org/node/600836
*/
function testBatchLargePercentage() {
// Displaying the page triggers batch 5.
......
......@@ -82,7 +82,7 @@ function urlToRSSLinkPattern($url, $title = '') {
/**
* Checks that special characters are correctly escaped.
*
* @see http://drupal.org/node/1211668
* @see https://www.drupal.org/node/1211668
*/
function testFeedIconEscaping() {
$variables = array(
......
......@@ -133,24 +133,24 @@ function testMoreLink() {
'name' => "#type 'more_link' anchor tag generation without extra classes",
'value' => array(
'#type' => 'more_link',
'#url' => Url::fromUri('http://drupal.org'),
'#url' => Url::fromUri('https://www.drupal.org'),
),
'expected' => '//div[@class="more-link"]/a[@href="http://drupal.org" and text()="More"]',
'expected' => '//div[@class="more-link"]/a[@href="https://www.drupal.org" and text()="More"]',
),
array(
'name' => "#type 'more_link' anchor tag generation with different link text",
'value' => array(
'#type' => 'more_link',
'#url' => Url::fromUri('http://drupal.org'),
'#url' => Url::fromUri('https://www.drupal.org'),
'#title' => 'More Titles',
),
'expected' => '//div[@class="more-link"]/a[@href="http://drupal.org" and text()="More Titles"]',
'expected' => '//div[@class="more-link"]/a[@href="https://www.drupal.org" and text()="More Titles"]',
),
array(
'name' => "#type 'more_link' anchor tag generation with attributes on wrapper",
'value' => array(
'#type' => 'more_link',
'#url' => Url::fromUri('http://drupal.org'),
'#url' => Url::fromUri('https://www.drupal.org'),
'#theme_wrappers' => array(
'container' => array(
'#attributes' => array(
......@@ -160,7 +160,7 @@ function testMoreLink() {
),
),
),
'expected' => '//div[@title="description" and contains(@class, "more-link") and contains(@class, "drupal") and contains(@class, "test")]/a[@href="http://drupal.org" and text()="More"]',
'expected' => '//div[@title="description" and contains(@class, "more-link") and contains(@class, "drupal") and contains(@class, "test")]/a[@href="https://www.drupal.org" and text()="More"]',
),
array(
'name' => "#type 'more_link' anchor tag with a relative path",
......
......@@ -80,7 +80,7 @@ function testLinkAttributes() {
'#options' => array(
'language' => $language,