diff --git a/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php b/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php index 3f1d9253da850e515e0c9f7d3c35adcaadd3788e..7aab75001b71bbd6cdc52655d13852f2019212a0 100644 --- a/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php +++ b/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php @@ -2,6 +2,8 @@ namespace Drupal\Component\Transliteration; +// cspell:ignore vibber + /** * Implements transliteration without using the PECL extensions. * diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index ca55c6d86c2a8b13f084845a8a4c663afeb5b5b8..1d502548c095d2d08f90684c0403906ed12d4cc8 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -1392,26 +1392,19 @@ userref userreference userspace usuario -vals vampirize varchar -veeeery veniam -verison versionable versionless verygreatdrupalmodule vfsstream -vibber viewmode viewports -viewsviewfiles vocabs volgende vorige vous -vxezb -vxfbk wcprops webassert webcal diff --git a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php index c376676a9699dd93734807b257e32a746241c6b6..22d1da8f1ee9931bb79109f73d186a1d9490e3f6 100644 --- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php +++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php @@ -274,35 +274,37 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf ]; $exception->embeddedHtmlResponse = NULL; + // cSpell:disable-next-line. + $token = 'PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU'; // 7. Edge case: response filter throwing an exception for this placeholder. $embedded_response_exception = new BigPipePlaceholderTestCase( [ '#lazy_builder' => ['\Drupal\big_pipe_test\BigPipeTestController::responseException', []], '#create_placeholder' => TRUE, ], - '<drupal-render-placeholder callback="\Drupal\big_pipe_test\BigPipeTestController::responseException" arguments="" token="PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU"></drupal-render-placeholder>', + '<drupal-render-placeholder callback="\Drupal\big_pipe_test\BigPipeTestController::responseException" arguments="" token="' . $token . ' "></drupal-render-placeholder>', [ '#lazy_builder' => ['\Drupal\big_pipe_test\BigPipeTestController::responseException', []], ] ); - $embedded_response_exception->bigPipePlaceholderId = 'callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU'; + $embedded_response_exception->bigPipePlaceholderId = 'callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=' . $token; $embedded_response_exception->bigPipePlaceholderRenderArray = [ - '#markup' => '<span data-big-pipe-placeholder-id="callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU"></span>', + '#markup' => '<span data-big-pipe-placeholder-id="callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=' . $token . '"></span>', '#cache' => $cacheability_depends_on_session_and_nojs_cookie, '#attached' => [ 'library' => ['big_pipe/big_pipe'], 'drupalSettings' => [ 'bigPipePlaceholderIds' => [ - 'callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU' => TRUE, + 'callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=' . $token => TRUE, ], ], 'big_pipe_placeholders' => [ - 'callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU' => $embedded_response_exception->placeholderRenderArray, + 'callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=' . $token => $embedded_response_exception->placeholderRenderArray, ], ], ]; $embedded_response_exception->embeddedAjaxResponseCommands = NULL; - $embedded_response_exception->bigPipeNoJsPlaceholder = '<span data-big-pipe-nojs-placeholder-id="callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=PxOHfS_QL-T01NjBgu7Z7I04tIwMp6La5vM-mVxezbU"></span>'; + $embedded_response_exception->bigPipeNoJsPlaceholder = '<span data-big-pipe-nojs-placeholder-id="callback=%5CDrupal%5Cbig_pipe_test%5CBigPipeTestController%3A%3AresponseException&&token=' . $token . '"></span>'; $embedded_response_exception->bigPipeNoJsPlaceholderRenderArray = [ '#markup' => $embedded_response_exception->bigPipeNoJsPlaceholder, '#cache' => $cacheability_depends_on_session_and_nojs_cookie, diff --git a/core/modules/block/js/block.js b/core/modules/block/js/block.js index a642ce363e6bc5299ea416ea2460d038ab9bbc78..7f03b99a8bdfc05513ffcf0c7351a08295e2d4f4 100644 --- a/core/modules/block/js/block.js +++ b/core/modules/block/js/block.js @@ -31,18 +31,18 @@ * A string with the summary. */ function checkboxesSummary(context) { - const vals = []; + const values = []; const $checkboxes = $(context).find( 'input[type="checkbox"]:checked + label', ); const il = $checkboxes.length; for (let i = 0; i < il; i++) { - vals.push($($checkboxes[i]).html()); + values.push($($checkboxes[i]).html()); } - if (!vals.length) { - vals.push(Drupal.t('Not restricted')); + if (!values.length) { + values.push(Drupal.t('Not restricted')); } - return vals.join(', '); + return values.join(', '); } $( diff --git a/core/modules/ckeditor5/src/HTMLRestrictions.php b/core/modules/ckeditor5/src/HTMLRestrictions.php index 68cd0589e53778e61f4132ee75cbe2e7d2bf9a6a..238d412c17083c17011e7c02d07faeef8cbe7557 100644 --- a/core/modules/ckeditor5/src/HTMLRestrictions.php +++ b/core/modules/ckeditor5/src/HTMLRestrictions.php @@ -559,6 +559,7 @@ public static function fromString(string $elements_string): HTMLRestrictions { unset($allowed_elements['*']); // @see \Drupal\filter\Plugin\Filter\FilterHtml::getHTMLRestrictions() // @todo remove this in https://www.drupal.org/project/drupal/issues/3226368 + // cSpell:disable-next-line unset($allowed_elements['__zqh6vxfbk3cg__']); // Postprocess tag wildcards: convert diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php index f60c0a56ee569038a45b6d5ea46fd3e0bf1d3528..2cf729b9822b8bf11e834ece2ca8d9532f4d8ab9 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php @@ -13,6 +13,8 @@ use Drupal\node\Entity\NodeType; use Drupal\Tests\BrowserTestBase; +// cspell:ignore viewsviewfiles + /** * Translate settings and entities to various languages. * diff --git a/core/modules/filter/src/Plugin/Filter/FilterHtml.php b/core/modules/filter/src/Plugin/Filter/FilterHtml.php index 533c763e462711eab7b14f63f7f8f672234227de..e4474320c39bd94b5869bb6313a22108331cef73 100644 --- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php +++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php @@ -256,6 +256,7 @@ public function getHTMLRestrictions() { $html = str_replace('>', ' />', $this->settings['allowed_html']); // Protect any trailing * characters in attribute names, since DomDocument // strips them as invalid. + // cSpell:disable-next-line $star_protector = '__zqh6vxfbk3cg__'; $html = str_replace('*', $star_protector, $html); $body_child_nodes = Html::load($html)->getElementsByTagName('body')->item(0)->childNodes; diff --git a/core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.info.yml b/core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.info.yml index 6ecdeabe9f078e108abbe814de8994bf17c0fd0e..d8dcb1f9ba96cacac0c86185fa11d2fa417596b0 100644 --- a/core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.info.yml +++ b/core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.info.yml @@ -1,6 +1,6 @@ name: 'Locale Test Development Release' type: module -description: 'Helper module to test the behavior when the core verison is a development release.' +description: 'Helper module to test the behavior when the core version is a development release.' package: Testing version: VERSION hidden: true diff --git a/core/modules/media/js/type_form.js b/core/modules/media/js/type_form.js index f24d52b52e613cbad8fdba5a21335ae7be7a12ce..ebfe844aa30b55b73b88f4812000b6abc45666de 100644 --- a/core/modules/media/js/type_form.js +++ b/core/modules/media/js/type_form.js @@ -17,24 +17,26 @@ const $context = $(context); // Provide the vertical tab summaries. $context.find('#edit-workflow').drupalSetSummary((context) => { - const vals = []; + const values = []; $(context) .find('input[name^="options"]:checked') .parent() .each(function () { - vals.push(Drupal.checkPlain($(this).find('label')[0].textContent)); + values.push( + Drupal.checkPlain($(this).find('label')[0].textContent), + ); }); if (!$(context).find('#edit-options-status').is(':checked')) { - vals.unshift(Drupal.t('Not published')); + values.unshift(Drupal.t('Not published')); } - return vals.join(', '); + return values.join(', '); }); $(context) .find('#edit-language') .drupalSetSummary((context) => { - const vals = []; + const values = []; - vals.push( + values.push( $(context).find( '.js-form-item-language-configuration-langcode select option:selected', )[0].textContent, @@ -44,10 +46,10 @@ .find('input:checked') .next('label') .each(function () { - vals.push(Drupal.checkPlain(this.textContent)); + values.push(Drupal.checkPlain(this.textContent)); }); - return vals.join(', '); + return values.join(', '); }); }, }; diff --git a/core/modules/node/content_types.js b/core/modules/node/content_types.js index b7650d1ef346f376d29346991a5eaa0767c0155d..c663db8ef00cdbee8104ce72542c837549709020 100644 --- a/core/modules/node/content_types.js +++ b/core/modules/node/content_types.js @@ -17,30 +17,30 @@ const $context = $(context); // Provide the vertical tab summaries. $context.find('#edit-submission').drupalSetSummary((context) => { - const vals = []; - vals.push( + const values = []; + values.push( Drupal.checkPlain($(context).find('#edit-title-label')[0].value) || Drupal.t('Requires a title'), ); - return vals.join(', '); + return values.join(', '); }); $context.find('#edit-workflow').drupalSetSummary((context) => { - const vals = []; + const values = []; $(context) .find('input[name^="options"]:checked') .next('label') .each(function () { - vals.push(Drupal.checkPlain(this.textContent)); + values.push(Drupal.checkPlain(this.textContent)); }); if (!$(context).find('#edit-options-status').is(':checked')) { - vals.unshift(Drupal.t('Not published')); + values.unshift(Drupal.t('Not published')); } - return vals.join(', '); + return values.join(', '); }); $('#edit-language', context).drupalSetSummary((context) => { - const vals = []; + const values = []; - vals.push( + values.push( $( '.js-form-item-language-configuration-langcode select option:selected', context, @@ -50,24 +50,24 @@ $('input:checked', context) .next('label') .each(function () { - vals.push(Drupal.checkPlain(this.textContent)); + values.push(Drupal.checkPlain(this.textContent)); }); - return vals.join(', '); + return values.join(', '); }); $context.find('#edit-display').drupalSetSummary((context) => { - const vals = []; + const values = []; const $editContext = $(context); $editContext .find('input:checked') .next('label') .each(function () { - vals.push(Drupal.checkPlain(this.textContent)); + values.push(Drupal.checkPlain(this.textContent)); }); if (!$editContext.find('#edit-display-submitted').is(':checked')) { - vals.unshift(Drupal.t("Don't display post information")); + values.unshift(Drupal.t("Don't display post information")); } - return vals.join(', '); + return values.join(', '); }); }, }; diff --git a/core/modules/node/node.js b/core/modules/node/node.js index c9ed55068d32273b331ccaec0c671450e9b38151..74047c9ab2ba7e19de7b0c389be07a116259d6d4 100644 --- a/core/modules/node/node.js +++ b/core/modules/node/node.js @@ -38,16 +38,16 @@ $context.find('.node-form-options').drupalSetSummary((context) => { const $optionsContext = $(context); - const vals = []; + const values = []; if ($optionsContext.find('input').is(':checked')) { $optionsContext .find('input:checked') .next('label') .each(function () { - vals.push(Drupal.checkPlain(this.textContent.trim())); + values.push(Drupal.checkPlain(this.textContent.trim())); }); - return vals.join(', '); + return values.join(', '); } return Drupal.t('Not promoted'); diff --git a/core/modules/pgsql/tests/src/Unit/SchemaTest.php b/core/modules/pgsql/tests/src/Unit/SchemaTest.php index 7673638143b2d194358dfaab8f01089fdbe82d77..3b9192fdea4e6a1f6d90e82d0f64c401993a665c 100644 --- a/core/modules/pgsql/tests/src/Unit/SchemaTest.php +++ b/core/modules/pgsql/tests/src/Unit/SchemaTest.php @@ -74,7 +74,7 @@ public function providerComputedConstraintName() { return [ ['user_field_data', 'pkey', 'user_field_data____pkey'], ['user_field_data', 'name__key', 'user_field_data__name__key'], - ['user_field_data', 'a_veeeery_veery_very_super_long_field_name__key', 'drupal_BGGYAXgbqlAF1rMOyFTdZGj9zIMXZtSvEjMAKZ9wGIk_key'], + ['user_field_data', 'a_very_very_very_very_super_long_field_name__key', 'drupal_WW_a8TlbZ3UQi20UTtRlJFaIeSa6FEtQS5h4NRA3UeU_key'], ]; } diff --git a/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php index 805f56b8c28f0dcf31e0714c45245d072b7a0fe1..dc145a0e0fcb90c2c769fdf970b451e31882d7fe 100644 --- a/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php +++ b/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php @@ -135,11 +135,11 @@ public function preRender(&$values) { } if ($nids) { - $vocabs = array_filter($this->options['vids']); + $vids = array_filter($this->options['vids']); if (empty($this->options['limit'])) { - $vocabs = []; + $vids = []; } - $result = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->getNodeTerms($nids, $vocabs); + $result = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->getNodeTerms($nids, $vids); foreach ($result as $node_nid => $data) { foreach ($data as $tid => $term) { diff --git a/core/modules/taxonomy/src/TermStorage.php b/core/modules/taxonomy/src/TermStorage.php index c01ae66d3adbf1624f1b7f49d48ae80d3815795b..061abd39e4abc0800cdf7a9b17f1cc09fddf9135 100644 --- a/core/modules/taxonomy/src/TermStorage.php +++ b/core/modules/taxonomy/src/TermStorage.php @@ -343,7 +343,7 @@ public function resetWeights($vid) { /** * {@inheritdoc} */ - public function getNodeTerms(array $nids, array $vocabs = [], $langcode = NULL) { + public function getNodeTerms(array $nids, array $vids = [], $langcode = NULL) { $query = $this->database->select($this->getDataTable(), 'td'); $query->innerJoin('taxonomy_index', 'tn', '[td].[tid] = [tn].[tid]'); $query->fields('td', ['tid']); @@ -352,8 +352,8 @@ public function getNodeTerms(array $nids, array $vocabs = [], $langcode = NULL) $query->orderby('td.name'); $query->condition('tn.nid', $nids, 'IN'); $query->addTag('taxonomy_term_access'); - if (!empty($vocabs)) { - $query->condition('td.vid', $vocabs, 'IN'); + if (!empty($vids)) { + $query->condition('td.vid', $vids, 'IN'); } if (!empty($langcode)) { $query->condition('td.langcode', $langcode); diff --git a/core/modules/taxonomy/src/TermStorageInterface.php b/core/modules/taxonomy/src/TermStorageInterface.php index 41d521156aba0dd8fe9466d166725c09d9145513..1f995204b280a81f8589659161c26243b76ab7ff 100644 --- a/core/modules/taxonomy/src/TermStorageInterface.php +++ b/core/modules/taxonomy/src/TermStorageInterface.php @@ -118,16 +118,16 @@ public function resetWeights($vid); * * @param array $nids * Node IDs to retrieve terms for. - * @param array $vocabs - * (optional) A vocabularies array to restrict the term search. Defaults to - * empty array. + * @param array $vids + * (optional) an array of vocabulary IDs to restrict the term search. + * Defaults to empty array. * @param string $langcode * (optional) A language code to restrict the term search. Defaults to NULL. * * @return array * An array of nids and the term entities they were tagged with. */ - public function getNodeTerms(array $nids, array $vocabs = [], $langcode = NULL); + public function getNodeTerms(array $nids, array $vids = [], $langcode = NULL); /** * Returns the hierarchy type for a specific vocabulary ID.