Issue #3268838 by quietone, TR, smustgrave, xjm: Fix functions and test modules for Drupal.Commenting.DocComment.ShortSingleLine

(cherry picked from commit 6629a1634d)
merge-requests/3604/head
Dave Long 2023-04-12 16:30:41 +01:00
parent 3387c4d4a8
commit 94398eb858
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
14 changed files with 24 additions and 32 deletions

View File

@ -840,8 +840,7 @@ function hook_element_plugin_alter(array &$definitions) {
} }
/** /**
* Perform necessary alterations to the JavaScript before it is presented on * Alters JavaScript before it is presented on the page.
* the page.
* *
* @param $javascript * @param $javascript
* An array of all JavaScript being presented on the page. * An array of all JavaScript being presented on the page.

View File

@ -2,8 +2,7 @@
/** /**
* @file * @file
* Dummy module emptying comment titles to test for appropriate and accessible * Empties comment titles to test markup in edge case scenarios.
* markup in edge case scenarios where comments have empty titles.
*/ */
/** /**

View File

@ -2,8 +2,7 @@
/** /**
* @file * @file
* Dummy module implementing comment related hooks to test API interaction with * Implements comment-related hooks to test API interactions.
* the Comment module.
*/ */
use Drupal\comment\CommentInterface; use Drupal\comment\CommentInterface;

View File

@ -42,8 +42,9 @@ function file_test_reset() {
} }
/** /**
* Get the arguments passed to invocation of a given hook since * Gets the arguments passed to a given hook invocation.
* file_test_reset() was last called. *
* Arguments are gathered since file_test_reset() was last called.
* *
* @param string $op * @param string $op
* One of the hook_file_* operations: 'load', 'validate', 'download', * One of the hook_file_* operations: 'load', 'validate', 'download',

View File

@ -253,8 +253,7 @@ function locale_translation_batch_status_build($projects = [], $langcodes = [])
} }
/** /**
* Helper function to construct batch operations checking remote translation * Constructs batch operations for checking remote translation status.
* status.
* *
* @param array $projects * @param array $projects
* Array of project names to be processed. * Array of project names to be processed.

View File

@ -1067,8 +1067,9 @@ function _locale_strip_quotes($string) {
} }
/** /**
* Parses a JavaScript file, extracts strings wrapped in Drupal.t() and * Parses a JavaScript file, extracts translatable strings, and saves them.
* Drupal.formatPlural() and inserts them into the database. *
* Strings are extracted from both Drupal.t() and Drupal.formatPlural().
* *
* @param string $filepath * @param string $filepath
* File name to parse. * File name to parse.

View File

@ -2,8 +2,7 @@
/** /**
* @file * @file
* Test module for testing the migration source plugin prepareRow() exception * Tests the migration source plugin prepareRow() exception handling.
* handling.
*/ */
use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;

View File

@ -2,8 +2,7 @@
/** /**
* @file * @file
* Test module for testing the migration source plugin prepareRow() exception * Tests the migration source plugin prepareRow() exception.
* handling.
*/ */
use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;

View File

@ -2,9 +2,10 @@
/** /**
* @file * @file
* Test module setting up two tests, one for checking if the entity $langcode is * Tests the preprocessing of search text.
* being passed on and another one sets up the alternate verb forms for the *
* stemming test. * Preprocessing is tested when the language code is passed to the preprocess
* hook and also when with alternate verb forms for the stemming test.
*/ */
/** /**

View File

@ -11,9 +11,11 @@
function update_test_description_update_8001() { function update_test_description_update_8001() {
} }
// @codingStandardsIgnoreStart
/** /**
* Update test with multiline description, the quick brown fox jumped over the * Update test with multiline description, the quick brown fox jumped over the
* lazy dog. * lazy dog.
*/ */
function update_test_description_update_8002() { function update_test_description_update_8002() {
} }
// @codingStandardsIgnoreEnd

View File

@ -2,8 +2,7 @@
/** /**
* @file * @file
* A module for testing making taxonomy_term base fields' displays * Tests configurable displays for taxonomy_term base fields.
* configurable.
*/ */
use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeInterface;

View File

@ -999,8 +999,7 @@ function user_role_revoke_permissions($rid, array $permissions = []) {
} }
/** /**
* Conditionally create and send a notification email when a certain * Creates and sends a notification email following a change to a user account.
* operation happens on the given user account.
* *
* @param string $op * @param string $op
* The operation being performed on the account. Possible values: * The operation being performed on the account. Possible values:

View File

@ -217,8 +217,7 @@ function views_theme($existing, $type, $theme, $path) {
} }
/** /**
* A theme preprocess function to automatically allow view-based node * Allows view-based node templates if called from a view.
* templates if called from a view.
* *
* The 'modules/node.views.inc' file is a better place for this, but * The 'modules/node.views.inc' file is a better place for this, but
* we haven't got a chance to load that file before Drupal builds the * we haven't got a chance to load that file before Drupal builds the
@ -254,8 +253,7 @@ function views_theme_suggestions_node_alter(array &$suggestions, array $variable
} }
/** /**
* A theme preprocess function to automatically allow view-based node * Allows view-based comment templates if called from a view.
* templates if called from a view.
*/ */
function views_preprocess_comment(&$variables) { function views_preprocess_comment(&$variables) {
// The view data is added to the comment in // The view data is added to the comment in

View File

@ -200,9 +200,7 @@ function views_ui_nojs_submit($form, FormStateInterface $form_state) {
} }
/** /**
* Add a <select> dropdown for a given section, allowing the user to * Adds an element to select either the default display or the current display.
* change whether this info is stored on the default display or on
* the current display.
*/ */
function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_state, $section) { function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_state, $section) {
$view = $form_state->get('view'); $view = $form_state->get('view');
@ -269,8 +267,7 @@ function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_sta
} }
/** /**
* Create the menu path for one of our standard AJAX forms based upon known * Creates the menu path for a standard AJAX form given the form state.
* information about the form.
* *
* @return \Drupal\Core\Url * @return \Drupal\Core\Url
* The URL object pointing to the form URL. * The URL object pointing to the form URL.