diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 57214f21f6c98bb67469b2112a3ace1f237c5a50..9f8371e2dfc6a04079cefeb8827de87d64feada6 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -143,7 +143,7 @@ function drupal_find_theme_functions($cache, $prefixes) { // Find theme functions that implement possible "suggestion" variants of // registered theme hooks and add those as new registered theme hooks. // The 'pattern' key defines a common prefix that all suggestions must - // start with. The default is the name of the hook followed by '__'. An + // start with. The default is the name of the hook followed by '__'. A // 'base hook' key is added to each entry made for a found suggestion, // so that common functionality can be implemented for all suggestions of // the same base hook. To keep things simple, deep hierarchy of diff --git a/core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php b/core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php index c95826044831584d662c962f42853dc299627a11..6b205dbbd29d6cd777ba60202454c1565ce6b27d 100644 --- a/core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php +++ b/core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php @@ -15,7 +15,7 @@ class InvalidPluginDefinitionException extends PluginException { protected $pluginId; /** - * Constructs a InvalidPluginDefinitionException. + * Constructs an InvalidPluginDefinitionException. * * For the remaining parameters see \Exception. * diff --git a/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php b/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php index fa83e010fe74888cb426eadae0d388ea7ecdd996..3c78fa93b3a27d5cac2291ee4b49fa9a917f5ee4 100644 --- a/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php +++ b/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php @@ -8,7 +8,7 @@ class PluginNotFoundException extends PluginException { /** - * Construct an PluginNotFoundException exception. + * Construct a PluginNotFoundException exception. * * For the remaining parameters see \Exception. * diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php index b3893d68457123d6f920a66ac55705a85f634aa3..f9bb8e6a23aa8d3dbbe24ffd7e2d1ad9f7f00edd 100644 --- a/core/lib/Drupal/Component/Utility/Html.php +++ b/core/lib/Drupal/Component/Utility/Html.php @@ -45,8 +45,8 @@ class Html { * tag anymore. * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/command. * - The 'manifest' attribute is omitted because it only exists for the - * tag. That tag only makes sense in a HTML-served-as-HTML context, in which - * case relative URLs are guaranteed to work. + * tag. That tag only makes sense in an HTML-served-as-HTML context, in + * which case relative URLs are guaranteed to work. * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes * @see https://stackoverflow.com/questions/2725156/complete-list-of-html-tag-attributes-which-have-a-url-value diff --git a/core/lib/Drupal/Component/Utility/UrlHelper.php b/core/lib/Drupal/Component/Utility/UrlHelper.php index 443673447e1c66799e84653f2558d506cbc913f7..137b4118ce0356428457ac4e2ee813bb87a5edb1 100644 --- a/core/lib/Drupal/Component/Utility/UrlHelper.php +++ b/core/lib/Drupal/Component/Utility/UrlHelper.php @@ -242,14 +242,14 @@ public static function isExternal($path) { * TRUE if the URL has the same domain and base path. * * @throws \InvalidArgumentException - * Exception thrown when a either $url or $bath_url are not fully qualified. + * Exception thrown when either $url or $base_url are not fully qualified. */ public static function externalIsLocal($url, $base_url) { // Some browsers treat \ as / so normalize to forward slashes. $url = str_replace('\\', '/', $url); // Leading control characters may be ignored or mishandled by browsers, so - // assume such a path may lead to an non-local location. The \p{C} character + // assume such a path may lead to a non-local location. The \p{C} character // class matches all UTF-8 control, unassigned, and private characters. if (preg_match('/^\p{C}/u', $url) !== 0) { return FALSE; diff --git a/core/lib/Drupal/Core/Access/AccessManager.php b/core/lib/Drupal/Core/Access/AccessManager.php index 36dec5b65c615be244d604e970d553d1901d7eb0..14b5c87d7c6b2bdd19bec8092a61a49b3a453b69 100644 --- a/core/lib/Drupal/Core/Access/AccessManager.php +++ b/core/lib/Drupal/Core/Access/AccessManager.php @@ -55,7 +55,7 @@ class AccessManager implements AccessManagerInterface { protected $checkProvider; /** - * Constructs a AccessManager instance. + * Constructs an AccessManager instance. * * @param \Drupal\Core\Routing\RouteProviderInterface $route_provider * The route provider. diff --git a/core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php b/core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php index cfebdf2ec5883400b8d536b3d7a6201915221578..3a733d5ef0bd2aef42d10717991f8afc694b5aea 100644 --- a/core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php +++ b/core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php @@ -70,7 +70,7 @@ class EmailAction extends ConfigurableActionBase implements ContainerFactoryPlug protected $emailValidator; /** - * Constructs a EmailAction object. + * Constructs an EmailAction object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php b/core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php index 262402490329d0df0a208121a80b124ca2e17ab0..20351e2c606a632858ef5d2eabeb862e91ce05c8 100644 --- a/core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php +++ b/core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php @@ -21,7 +21,7 @@ abstract class EntityActionBase extends ActionBase implements DependentPluginInt protected $entityTypeManager; /** - * Constructs a EntityActionBase object. + * Constructs an EntityActionBase object. * * @param mixed[] $configuration * A configuration array containing information about the plugin instance. diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php b/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php index ee5208b07847b283febde1d6639dcf1bc53c5809..875c9d3ef9619dde2ae8fdddc62c4b2b8e270c1b 100644 --- a/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php +++ b/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php @@ -71,7 +71,7 @@ class AjaxResponseAttachmentsProcessor implements AttachmentsResponseProcessorIn protected $moduleHandler; /** - * Constructs a AjaxResponseAttachmentsProcessor object. + * Constructs an AjaxResponseAttachmentsProcessor object. * * @param \Drupal\Core\Asset\AssetResolverInterface $asset_resolver * An asset resolver. diff --git a/core/lib/Drupal/Core/Ajax/OpenOffCanvasDialogCommand.php b/core/lib/Drupal/Core/Ajax/OpenOffCanvasDialogCommand.php index ac7f6950a575ea20dcd66e45ddd99b2c3c4af2fb..eb868aaf5f6ea1a98cd542214956c2655e624c56 100644 --- a/core/lib/Drupal/Core/Ajax/OpenOffCanvasDialogCommand.php +++ b/core/lib/Drupal/Core/Ajax/OpenOffCanvasDialogCommand.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Ajax; /** - * Defines an AJAX command to open content in a dialog in a off-canvas dialog. + * Defines an AJAX command to open content in a dialog in an off-canvas tray. * * @ingroup ajax */ @@ -18,7 +18,7 @@ class OpenOffCanvasDialogCommand extends OpenDialogCommand { * Constructs an OpenOffCanvasDialogCommand object. * * The off-canvas dialog differs from the normal modal provided by - * OpenDialogCommand in that a off-canvas has built in positioning and + * OpenDialogCommand in that an off-canvas has built in positioning and * behaviors. Drupal provides a built-in off-canvas dialog for this purpose, * so the selector is hard-coded in the call to the parent constructor. * diff --git a/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php b/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php index d46b87ae482afcde0c02c4e32d69a0833842d31e..fc2ea20f6ec201787bf902ce4f9b8a508c998cf1 100644 --- a/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php +++ b/core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php @@ -34,7 +34,7 @@ class UpdateBuildIdCommand implements CommandInterface { protected $new; /** - * Constructs a UpdateBuildIdCommand object. + * Constructs an UpdateBuildIdCommand object. * * @param string $old * The old build_id. diff --git a/core/lib/Drupal/Core/Archiver/ArchiverManager.php b/core/lib/Drupal/Core/Archiver/ArchiverManager.php index e5545d74d79accf71f4d5b8973e4c5395906dc52..c97e091849aa1639d778b01a34338b5b2446a70e 100644 --- a/core/lib/Drupal/Core/Archiver/ArchiverManager.php +++ b/core/lib/Drupal/Core/Archiver/ArchiverManager.php @@ -25,7 +25,7 @@ class ArchiverManager extends DefaultPluginManager { protected $fileSystem; /** - * Constructs a ArchiverManager object. + * Constructs an ArchiverManager object. * * @param \Traversable $namespaces * An object that implements \Traversable which contains the root paths diff --git a/core/lib/Drupal/Core/Archiver/Tar.php b/core/lib/Drupal/Core/Archiver/Tar.php index ecc62abd8f8ad22666d15c27ba4d7894524db848..00dd4fdf1fe509568b98e79c99ccf6d4f8423ae1 100644 --- a/core/lib/Drupal/Core/Archiver/Tar.php +++ b/core/lib/Drupal/Core/Archiver/Tar.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Archiver; /** - * Defines a archiver implementation for .tar files. + * Defines an archiver implementation for .tar files. */ class Tar implements ArchiverInterface { diff --git a/core/lib/Drupal/Core/Archiver/Zip.php b/core/lib/Drupal/Core/Archiver/Zip.php index 74f6105929370c4c879a50371f494122bcd57b71..835ebca15b2b3340757a567767ec3738a88f287f 100644 --- a/core/lib/Drupal/Core/Archiver/Zip.php +++ b/core/lib/Drupal/Core/Archiver/Zip.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Archiver; /** - * Defines a archiver implementation for .zip files. + * Defines an archiver implementation for .zip files. * * @link http://php.net/zip */ diff --git a/core/lib/Drupal/Core/Asset/AssetDumperInterface.php b/core/lib/Drupal/Core/Asset/AssetDumperInterface.php index 2b53eb13b02123b02ed1ec0c44d3b06c629ef616..24be86ca342f395beb3fcde7ef862b8da361c83a 100644 --- a/core/lib/Drupal/Core/Asset/AssetDumperInterface.php +++ b/core/lib/Drupal/Core/Asset/AssetDumperInterface.php @@ -16,7 +16,7 @@ interface AssetDumperInterface { * The file extension of this asset. * * @return string - * An URI to access the dumped asset. + * A URI to access the dumped asset. */ public function dump($data, $file_extension); diff --git a/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php b/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php index 00aae051f86dcca446b3eb427db6f32f53feedcc..cccffeb5ac136c29feef7bd77f36ed8724252e88 100644 --- a/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php +++ b/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php @@ -21,7 +21,7 @@ interface ConfigFactoryInterface { public function get($name); /** - * Returns an mutable configuration object for a given name. + * Returns a mutable configuration object for a given name. * * Should not be used for config that will have runtime effects. Therefore it * is always loaded override free. diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php index 25b7d0afbbec23ab4c8493df43a800c8cb9b79d2..3e4c264385b3164a9280a1e86baba62e1fa30877 100644 --- a/core/lib/Drupal/Core/Config/ConfigImporter.php +++ b/core/lib/Drupal/Core/Config/ConfigImporter.php @@ -23,7 +23,7 @@ * * @see \Drupal\Core\Config\StorageComparerInterface * - * The ConfigImporter has a identifier which is used to construct event names. + * The ConfigImporter has an identifier which is used to construct event names. * The events fired during an import are: * - ConfigEvents::IMPORT_VALIDATE: Events listening can throw a * \Drupal\Core\Config\ConfigImporterException to prevent an import from @@ -1039,7 +1039,7 @@ protected function importInvokeRename($collection, $rename_name) { } /** - * Determines if a import is already running. + * Determines if an import is already running. * * @return bool * TRUE if an import is already running, FALSE if not. diff --git a/core/lib/Drupal/Core/Config/Entity/Query/Query.php b/core/lib/Drupal/Core/Config/Entity/Query/Query.php index 66470dce5bb53c980b347ec494b66209338b69e9..757ce8ba6f1d3b7ce29bfec07dea54594472a8eb 100644 --- a/core/lib/Drupal/Core/Config/Entity/Query/Query.php +++ b/core/lib/Drupal/Core/Config/Entity/Query/Query.php @@ -59,7 +59,7 @@ public function __construct(EntityTypeInterface $entity_type, $conjunction, Conf * Overrides \Drupal\Core\Entity\Query\QueryBase::condition(). * * Additional to the syntax defined in the QueryInterface you can use - * placeholders (*) to match all keys of an subarray. Let's take the follow + * placeholders (*) to match all keys of a subarray. Let's take the follow * yaml file as example: * @code * level1: diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php index 39a03b98ed4dbdb2fa24f36e80e8e0de17ed363f..8d86059aeacc5dfb4e9508f179bb8e47d088737a 100644 --- a/core/lib/Drupal/Core/Database/Connection.php +++ b/core/lib/Drupal/Core/Database/Connection.php @@ -1722,7 +1722,7 @@ public function commit() { } /** - * Retrieves an unique ID from a given sequence. + * Retrieves a unique ID from a given sequence. * * Use this function if for some reason you can't use a serial field. For * example, MySQL has no ways of reading of the current value of a sequence diff --git a/core/lib/Drupal/Core/Database/Database.php b/core/lib/Drupal/Core/Database/Database.php index 82084caa4f9b390338c88ad99cf87e4cfa819346..f2d5f9c2bdd4ac854e6f2ce7ce6b8a306b0ed467 100644 --- a/core/lib/Drupal/Core/Database/Database.php +++ b/core/lib/Drupal/Core/Database/Database.php @@ -38,7 +38,7 @@ abstract class Database { const RETURN_INSERT_ID = 3; /** - * An nested array of all active connections. It is keyed by database name + * A nested array of all active connections. It is keyed by database name * and target. * * @var array diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php index 4a07ba1a58b5a99a3a3f3729e756c040c0bc5a8c..b996735aabd290e29f3c461a368349f91c1a6628 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php @@ -319,7 +319,7 @@ public function getFullQualifiedTableName($table) { } /** - * Add a new savepoint with an unique name. + * Add a new savepoint with a unique name. * * The main use for this method is to mimic InnoDB functionality, which * provides an inherent savepoint before any query in a transaction. diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php index 2df730d6139c7f05f8828f415c344abb92b517ee..f10b05f3544981e0c59194f3216ed75507f77f6b 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php @@ -99,7 +99,7 @@ public function orderBy($field, $direction = 'ASC') { } } - // If $field contains an characters which are not allowed in a field name + // If $field contains characters which are not allowed in a field name // it is considered an expression, these can't be handled automatically // either. if ($this->connection->escapeField($field) != $field) { diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php index f432927a662a543a24269e057f3617e7df8fc855..caf1065f29ea00898bbe7ad471d6f025d9a51881 100644 --- a/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php @@ -366,7 +366,7 @@ public function addField($table, $field, $specification, $keys_new = []) { // Build the mapping between the old fields and the new fields. $mapping = []; if (isset($specification['initial_from_field'])) { - // If we have a initial value, copy it over. + // If we have an initial value, copy it over. if (isset($specification['initial'])) { $expression = 'COALESCE(' . $specification['initial_from_field'] . ', :default_initial_value)'; $arguments = [':default_initial_value' => $specification['initial']]; @@ -381,7 +381,7 @@ public function addField($table, $field, $specification, $keys_new = []) { ]; } elseif (isset($specification['initial'])) { - // If we have a initial value, copy it over. + // If we have an initial value, copy it over. $mapping[$field] = [ 'expression' => ':newfieldinitial', 'arguments' => [':newfieldinitial' => $specification['initial']], diff --git a/core/lib/Drupal/Core/Database/Query/ConditionInterface.php b/core/lib/Drupal/Core/Database/Query/ConditionInterface.php index f5ce6759d391c31a4e8e577c46dc5bf9047bc4ca..5c08c9801010cfb60996ca595c14ed6c2d724823 100644 --- a/core/lib/Drupal/Core/Database/Query/ConditionInterface.php +++ b/core/lib/Drupal/Core/Database/Query/ConditionInterface.php @@ -48,10 +48,10 @@ interface ConditionInterface { * The value to test the field against. In most cases, and depending on the * operator, this will be a scalar or an array. As SQL accepts select * queries on any place where a scalar value or set is expected, $value may - * also be a(n array of) SelectInterface(s). If $operator is a unary - * operator, e.g. IS NULL, $value will be ignored and should be null. If - * the operator requires a subquery, e.g. EXISTS, the $field will be ignored - * and $value should be a SelectInterface object. + * also be a SelectInterface or an array of SelectInterfaces. If $operator + * is a unary operator, e.g. IS NULL, $value will be ignored and should be + * null. If the operator requires a subquery, e.g. EXISTS, the $field will + * be ignored and $value should be a SelectInterface object. * @param string|null $operator * The operator to use. Supported for all supported databases are at least: * - The comparison operators =, <>, <, <=, >, >=. diff --git a/core/lib/Drupal/Core/Database/database.api.php b/core/lib/Drupal/Core/Database/database.api.php index 9ee436bb014332009f1ebf07c6a4be3a98ca0ff1..aaeba667ef2f8fa2ae1335ca052bd477dfddcad5 100644 --- a/core/lib/Drupal/Core/Database/database.api.php +++ b/core/lib/Drupal/Core/Database/database.api.php @@ -432,7 +432,7 @@ function hook_query_alter(Drupal\Core\Database\Query\AlterableInterface $query) * a listing (e.g., from Views) and therefore require access control. * * @param $query - * An Query object describing the composite parts of a SQL query. + * A Query object describing the composite parts of a SQL query. * * @see hook_query_alter() * @see node_query_node_access_alter() diff --git a/core/lib/Drupal/Core/Datetime/Element/Datetime.php b/core/lib/Drupal/Core/Datetime/Element/Datetime.php index 01c0fd3eac6fa58d9f880ea7a7f988dc99992104..398fc984a7b0d9473cd37a8dd771a343c37e6316 100644 --- a/core/lib/Drupal/Core/Datetime/Element/Datetime.php +++ b/core/lib/Drupal/Core/Datetime/Element/Datetime.php @@ -154,7 +154,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form * element, no other format will work. See the * DateFormatterInterface::format() function for a list of the possible * formats and HTML5 standards for the HTML5 requirements. Defaults to the - * right HTML5 format for the chosen element if a HTML5 element is used, + * right HTML5 format for the chosen element if an HTML5 element is used, * otherwise defaults to DateFormat::load('html_date')->getPattern(). * - #date_date_element: The date element. Options are: * - datetime: Use the HTML5 datetime element type. @@ -164,7 +164,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form * - none: Do not display a date element. * - #date_date_callbacks: Array of optional callbacks for the date element. * - #date_time_element: The time element. Options are: - * - time: Use a HTML5 time element type. + * - time: Use an HTML5 time element type. * - text: No HTML5 element, use a normal text field. * - none: Do not display a time element. * - #date_time_format: A date format string that describes the format that @@ -173,7 +173,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form * element, no other format will work. See the * DateFormatterInterface::format() function for a list of the possible * formats and HTML5 standards for the HTML5 requirements. Defaults to the - * right HTML5 format for the chosen element if a HTML5 element is used, + * right HTML5 format for the chosen element if an HTML5 element is used, * otherwise defaults to DateFormat::load('html_time')->getPattern(). * - #date_time_callbacks: An array of optional callbacks for the time * element. Can be used to add a jQuery timepicker or an 'All day' checkbox. @@ -394,7 +394,7 @@ public static function formatExample($format) { } /** - * Retrieves the right format for a HTML5 date element. + * Retrieves the right format for an HTML5 date element. * * The format is important because these elements will not work with any other * format. @@ -404,7 +404,7 @@ public static function formatExample($format) { * * @return string * Returns the right format for the date element, or the original format - * if this is not a HTML5 element. + * if this is not an HTML5 element. */ protected static function getHtml5DateFormat($element) { switch ($element['#date_date_element']) { @@ -421,7 +421,7 @@ protected static function getHtml5DateFormat($element) { } /** - * Retrieves the right format for a HTML5 time element. + * Retrieves the right format for an HTML5 time element. * * The format is important because these elements will not work with any other * format. @@ -431,7 +431,7 @@ protected static function getHtml5DateFormat($element) { * * @return string * Returns the right format for the time element, or the original format - * if this is not a HTML5 element. + * if this is not an HTML5 element. */ protected static function getHtml5TimeFormat($element) { switch ($element['#date_time_element']) { diff --git a/core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php b/core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php index fa2b31a5590874a0256c893c49fccbc44133c704..16440c141c3e4df42a61df4bea9f557ff03acf59 100644 --- a/core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php +++ b/core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php @@ -3,7 +3,8 @@ namespace Drupal\Core\DependencyInjection; /** - * Provides an interface to get a instance of a class with dependency injection. + * Provides an interface to get an instance of a class with dependency + * injection. */ interface ClassResolverInterface { diff --git a/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php b/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php index 26bdf67b32a568b50163fec90049381423af6e55..455806fc9663b525710948825a8b2be1fa1b3c3e 100644 --- a/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php +++ b/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php @@ -13,7 +13,7 @@ use Symfony\Component\Validator\ConstraintViolationListInterface; /** - * Configuration entity that contains widget options for all components of a + * Configuration entity that contains widget options for all components of an * entity form in a given form mode. * * @ConfigEntityType( diff --git a/core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php b/core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php index 26206999264d75bec0143f5cd2610dba8e59880e..ba0dbf84f6639ae045a722404f209710b38e0538 100644 --- a/core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php +++ b/core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php @@ -19,7 +19,7 @@ class EntityAutocompleteMatcher implements EntityAutocompleteMatcherInterface { protected $selectionManager; /** - * Constructs a EntityAutocompleteMatcher object. + * Constructs an EntityAutocompleteMatcher object. * * @param \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface $selection_manager * The entity reference selection handler plugin manager. diff --git a/core/lib/Drupal/Core/Entity/EntityCreateAccessCheck.php b/core/lib/Drupal/Core/Entity/EntityCreateAccessCheck.php index f0a359574a5acf1173a18626ce8587a99aa0329a..233285e09042f614891668e812422968f52db5a4 100644 --- a/core/lib/Drupal/Core/Entity/EntityCreateAccessCheck.php +++ b/core/lib/Drupal/Core/Entity/EntityCreateAccessCheck.php @@ -28,7 +28,7 @@ class EntityCreateAccessCheck implements AccessInterface { protected $requirementsKey = '_entity_create_access'; /** - * Constructs a EntityCreateAccessCheck object. + * Constructs an EntityCreateAccessCheck object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager service. diff --git a/core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php b/core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php index e0e24a2f9ea200b9847234b7a644d71bbeba8c49..72af92f68d32da9ddfdf5cfd00354fd9f7bc483c 100644 --- a/core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php +++ b/core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php @@ -35,7 +35,7 @@ class EntityCreateAnyAccessCheck implements AccessInterface { protected $requirementsKey = '_entity_create_any_access'; /** - * Constructs a EntityCreateAnyAccessCheck object. + * Constructs an EntityCreateAnyAccessCheck object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. diff --git a/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php index 3da6f3b81ee829d75ab4d7b2548f450b84d6d6c4..b453fe330b5d5317d6925e3a5a045eb691edb4b3 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php @@ -17,7 +17,7 @@ interface EntityTypeManagerInterface extends PluginManagerInterface, CachedDisco * The entity type ID for this access control handler. * * @return \Drupal\Core\Entity\EntityAccessControlHandlerInterface - * A access control handler instance. + * An access control handler instance. */ public function getAccessControlHandler($entity_type_id); diff --git a/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php b/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php index b50caeacb2c6c1661f4e2bb50736d18cfac6fdf0..4843527a3c1f8f0263d852e3154c1e4ec4213b92 100644 --- a/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php +++ b/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php @@ -12,7 +12,7 @@ class NoCorrespondingEntityClassException extends \Exception { /** - * Constructs an NoCorrespondingEntityClassException. + * Constructs a NoCorrespondingEntityClassException. * * @param string $class * The class which does not correspond to an entity type. diff --git a/core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php b/core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php index 590c7d985d31da60e46ca205c2886e5c48db47fe..6d1f6333d5bb6234f8e9fd813a9e080576b60996 100644 --- a/core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php +++ b/core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Entity\Query; /** - * Defines a interface for aggregated entity queries. + * Defines an interface for aggregated entity queries. */ interface QueryAggregateInterface extends QueryInterface { diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php index 4697e77d2dff37781fa1f826d9f714863f9fcb25..b9b754b664630a192e5b1f4cc08ff3e3d5df649a 100644 --- a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php +++ b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php @@ -408,7 +408,7 @@ protected function addJoin($type, $table, $join_condition, $langcode, $delta = N $entity_type_id = $this->sqlQuery->getMetaData('entity_type'); $entity_type = $this->entityTypeManager->getActiveDefinition($entity_type_id); // Only the data table follows the entity language key, dedicated field - // tables have an hard-coded 'langcode' column. + // tables have a hard-coded 'langcode' column. $langcode_key = $entity_type->getDataTable() == $table ? $entity_type->getKey('langcode') : 'langcode'; $placeholder = ':langcode' . $this->sqlQuery->nextPlaceholder(); $join_condition .= ' AND [%alias].[' . $langcode_key . '] = ' . $placeholder; diff --git a/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php b/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php index 19ee7808d5866a986cecb8c5f9695b5bbbef7df6..7cc5cb2f97a45c9bb23c835a9693a70a58204e53 100644 --- a/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php +++ b/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php @@ -475,7 +475,7 @@ public function getExtraColumns($table_name) { } /** - * Adds a extra columns for a table to the table mapping. + * Adds extra columns for a table to the table mapping. * * @param string $table_name * The name of table to add the extra columns for. diff --git a/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php index 5cd34f9a75071c1550927a734a3d04e0acc95d89..2805227b851c3b8658c2c4c5568ef2aa8671692f 100644 --- a/core/lib/Drupal/Core/Entity/entity.api.php +++ b/core/lib/Drupal/Core/Entity/entity.api.php @@ -541,7 +541,7 @@ * @link container Services and Dependency Injection topic @endlink for more * about how to properly retrieve services. * - * To query to find entities to load, use an entity query, which is a object + * To query to find entities to load, use an entity query, which is an object * implementing \Drupal\Core\Entity\Query\QueryInterface that you can retrieve * with: * @code diff --git a/core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php b/core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php index ed6c4d3c2cf18c11eb9c91ba263c2a1743bf32f3..7aa00f8557bcd2f366aeaef92faa8487c7a85b98 100644 --- a/core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php +++ b/core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php @@ -99,7 +99,7 @@ public function onException(ExceptionEvent $event) { if ($exception instanceof HttpExceptionInterface && (empty($handled_formats) || in_array($format, $handled_formats))) { $method = 'on' . $exception->getStatusCode(); // Keep just the leading number of the status code to produce either a - // on400 or a 500 method callback. + // 400 or a 500 method callback. $method_fallback = 'on' . substr($exception->getStatusCode(), 0, 1) . 'xx'; // We want to allow the method to be called and still not set a response // if it has additional filtering logic to determine when it will apply. diff --git a/core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php index 18982a6d6e4bf80de05b9196e18cd7bd32dcc3a7..018ab6575d3debc08e37eed2f662124019a9ea2a 100644 --- a/core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php @@ -12,7 +12,7 @@ /** * Handles options requests. * - * Therefore it sends a options response using all methods on all possible + * Therefore it sends an options response using all methods on all possible * routes. */ class OptionsRequestSubscriber implements EventSubscriberInterface { diff --git a/core/lib/Drupal/Core/Extension/ThemeHandler.php b/core/lib/Drupal/Core/Extension/ThemeHandler.php index edff15e2eeca6c09139acc3304343178c979cd5e..19716f5c50daa9264d6f05cd045da74a53a1f3b5 100644 --- a/core/lib/Drupal/Core/Extension/ThemeHandler.php +++ b/core/lib/Drupal/Core/Extension/ThemeHandler.php @@ -46,7 +46,7 @@ class ThemeHandler implements ThemeHandlerInterface { * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory to get the installed themes. * @param \Drupal\Core\Extension\ThemeExtensionList $theme_list - * A extension discovery instance. + * An extension discovery instance. */ public function __construct($root, ConfigFactoryInterface $config_factory, ThemeExtensionList $theme_list) { $this->root = $root; diff --git a/core/lib/Drupal/Core/Field/ChangedFieldItemList.php b/core/lib/Drupal/Core/Field/ChangedFieldItemList.php index 2647129b926b391d3e02171d698b329271c1a957..db8566fef3e47576ccf2a99332c6a3072ebaeeec 100644 --- a/core/lib/Drupal/Core/Field/ChangedFieldItemList.php +++ b/core/lib/Drupal/Core/Field/ChangedFieldItemList.php @@ -6,7 +6,7 @@ use Drupal\Core\Session\AccountInterface; /** - * Defines a item list class for changed fields. + * Defines an item list class for changed fields. */ class ChangedFieldItemList extends FieldItemList { diff --git a/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php b/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php index 07449e8e913754dbfd4bd8ce29216b97a9965148..fc87eac3fb1a9b2fb9b6c7adc861af4813775172 100644 --- a/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php +++ b/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php @@ -6,7 +6,7 @@ use Drupal\Core\Form\FormStateInterface; /** - * Defines a item list class for entity reference fields. + * Defines an item list class for entity reference fields. */ class EntityReferenceFieldItemList extends FieldItemList implements EntityReferenceFieldItemListInterface { diff --git a/core/lib/Drupal/Core/Field/FieldConfigBase.php b/core/lib/Drupal/Core/Field/FieldConfigBase.php index 922eba4f25d9ccc7cc8919b56d0f5edde48ed0e7..698d3b752d0aab137fcfc9f3922f2dc2cf2e892f 100644 --- a/core/lib/Drupal/Core/Field/FieldConfigBase.php +++ b/core/lib/Drupal/Core/Field/FieldConfigBase.php @@ -132,7 +132,7 @@ abstract class FieldConfigBase extends ConfigEntityBase implements FieldConfigIn * * This property is overlooked if the $default_value_callback is non-empty. * - * Example for a integer field: + * Example for an integer field: * @code * array( * array('value' => 1), diff --git a/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php b/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php index 34cc058462a7aebb4f046a5aadce55250b0a3160..d75eb2295b2f4ba43f7e11dd149f6da31684785d 100644 --- a/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php +++ b/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php @@ -56,7 +56,7 @@ public function getType(); * * Each field type defines the settings that are meaningful for that type. * For example, a text field can define a 'max_length' setting, and an image - * field can define a 'alt_field_required' setting. + * field can define an 'alt_field_required' setting. * * The method always returns an array of all available settings for this field * type, possibly with the default values merged in if values have not been diff --git a/core/lib/Drupal/Core/Field/MapFieldItemList.php b/core/lib/Drupal/Core/Field/MapFieldItemList.php index 2d86daee4d481a96373d6e41f7c34592d2da4d38..f9f0898d0da170d675b43042818a4cd60d8d5a52 100644 --- a/core/lib/Drupal/Core/Field/MapFieldItemList.php +++ b/core/lib/Drupal/Core/Field/MapFieldItemList.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Field; /** - * Defines a item list class for map fields. + * Defines an item list class for map fields. */ class MapFieldItemList extends FieldItemList { diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php index 8474b99eee91aaa3f08142c4bd3b2aa50839bdd3..efdc92eddf854eebd84f22fa8be2d42ef34b6839 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php @@ -65,7 +65,7 @@ class EntityReferenceEntityFormatter extends EntityReferenceFormatterBase { protected static $recursiveRenderDepth = []; /** - * Constructs a EntityReferenceEntityFormatter instance. + * Constructs an EntityReferenceEntityFormatter instance. * * @param string $plugin_id * The plugin_id for the formatter. diff --git a/core/lib/Drupal/Core/Form/ConfirmFormBase.php b/core/lib/Drupal/Core/Form/ConfirmFormBase.php index 4214bfcabd1c532b8c7e194121c4b6e7a494c675..51cfbbf050022b64f6c792347e987a762c8972fb 100644 --- a/core/lib/Drupal/Core/Form/ConfirmFormBase.php +++ b/core/lib/Drupal/Core/Form/ConfirmFormBase.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Form; /** - * Provides an generic base class for a confirmation form. + * Provides a generic base class for a confirmation form. */ abstract class ConfirmFormBase extends FormBase implements ConfirmFormInterface { diff --git a/core/lib/Drupal/Core/Image/ImageInterface.php b/core/lib/Drupal/Core/Image/ImageInterface.php index 29d092a7368ee54a4b89acc14b1a232d529aec94..4bb6a9a671d1de3e3c57a0d1fc9e81e1eceb70f4 100644 --- a/core/lib/Drupal/Core/Image/ImageInterface.php +++ b/core/lib/Drupal/Core/Image/ImageInterface.php @@ -228,7 +228,7 @@ public function desaturate(); * @param float $degrees * The number of (clockwise) degrees to rotate the image. * @param string|null $background - * (optional) An hexadecimal integer specifying the background color to use + * (optional) A hexadecimal integer specifying the background color to use * for the uncovered area of the image after the rotation; for example, * 0x000000 for black, 0xff00ff for magenta, and 0xffffff for white. When * NULL (the default) is specified, for images that support transparency, diff --git a/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php b/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php index 3154fe2a2ac01091786138c953e2432e0bda6fdd..9d4acb3f9dc3d198d3ed83231477d31b16a88524 100644 --- a/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php +++ b/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php @@ -35,7 +35,7 @@ class ImageToolkit extends Plugin { /** * The title of the image toolkit. * - * The string should be wrapped in a @Translation(). + * The string should be wrapped in @Translation(). * * @ingroup plugin_translatable * diff --git a/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php b/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php index 96ebe9e6236055b8c04c23f7a06cea4e4ef1b541..73c7f3363de893d1db0a2946de248d28c6197c50 100644 --- a/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php +++ b/core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php @@ -63,7 +63,7 @@ class ImageToolkitOperation extends Plugin { /** * The human-readable name of the image toolkit operation. * - * The string should be wrapped in a @Translation(). + * The string should be wrapped in @Translation(). * * @ingroup plugin_translatable * @@ -74,7 +74,7 @@ class ImageToolkitOperation extends Plugin { /** * The description of the image toolkit operation. * - * The string should be wrapped in a @Translation(). + * The string should be wrapped in @Translation(). * * @ingroup plugin_translatable * diff --git a/core/lib/Drupal/Core/PageCache/ResponsePolicyInterface.php b/core/lib/Drupal/Core/PageCache/ResponsePolicyInterface.php index 0d3f96554766d470a04ab6107c8f62efaf4ce3a7..7d9505fa0522faa19ce123382a6be2908f02876b 100644 --- a/core/lib/Drupal/Core/PageCache/ResponsePolicyInterface.php +++ b/core/lib/Drupal/Core/PageCache/ResponsePolicyInterface.php @@ -9,7 +9,7 @@ * Defines the interface for response policy implementations. * * The response policy is evaluated in order to determine whether a page should - * be stored a in the cache. Calling code should do so unless static::DENY is + * be stored in the cache. Calling code should do so unless static::DENY is * returned from the check() method. */ interface ResponsePolicyInterface { diff --git a/core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php b/core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php index 6501ce0d1054e322c233b6642db41c79e08522b6..c81d30de7ea0fdb5264a662fe6ed412b8fe7cb6a 100644 --- a/core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php +++ b/core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php @@ -27,7 +27,7 @@ class InfoHookDecorator implements DiscoveryInterface { protected $hook; /** - * Constructs a InfoHookDecorator object. + * Constructs an InfoHookDecorator object. * * @param \Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated * The object implementing DiscoveryInterface that is being decorated. diff --git a/core/lib/Drupal/Core/Queue/QueueWorkerManager.php b/core/lib/Drupal/Core/Queue/QueueWorkerManager.php index d9a47b86804ef508d63f69336a1d830a9a911fa3..b1aa40f51c97a2f9e0a58d7cfee83252e36c29bb 100644 --- a/core/lib/Drupal/Core/Queue/QueueWorkerManager.php +++ b/core/lib/Drupal/Core/Queue/QueueWorkerManager.php @@ -17,7 +17,7 @@ class QueueWorkerManager extends DefaultPluginManager implements QueueWorkerManagerInterface { /** - * Constructs an QueueWorkerManager object. + * Constructs a QueueWorkerManager object. * * @param \Traversable $namespaces * An object that implements \Traversable which contains the root paths diff --git a/core/lib/Drupal/Core/Render/BareHtmlPageRendererInterface.php b/core/lib/Drupal/Core/Render/BareHtmlPageRendererInterface.php index 6c46c40bda299f0dcc458f6d59f4d5bffd64f99e..cc2021b1421176f8f6efbab8ad733317545874e8 100644 --- a/core/lib/Drupal/Core/Render/BareHtmlPageRendererInterface.php +++ b/core/lib/Drupal/Core/Render/BareHtmlPageRendererInterface.php @@ -23,7 +23,7 @@ * use a @code _controller @endcode route, and return a render array. * This will cause a main content renderer * (\Drupal\Core\Render\MainContent\MainContentRendererInterface) to be - * used, and in case of a HTML request that will be + * used, and in case of an HTML request that will be * \Drupal\Core\Render\MainContent\HtmlRenderer. * * In fact, this is not only *typically* used in a limited environment, it even diff --git a/core/lib/Drupal/Core/Render/Element.php b/core/lib/Drupal/Core/Render/Element.php index e509bd9170cb91be15a9b3e5ca96cf411eab4adf..ed7a444980b37e0300ea3fb0ce63f8f2094953fc 100644 --- a/core/lib/Drupal/Core/Render/Element.php +++ b/core/lib/Drupal/Core/Render/Element.php @@ -56,7 +56,7 @@ public static function child($key) { /** * Identifies the children of an element array, optionally sorted by weight. * - * The children of a element array are those key/value pairs whose key does + * The children of an element array are those key/value pairs whose key does * not start with a '#'. See drupal_render() for details. * * @param array $elements diff --git a/core/lib/Drupal/Core/Render/Element/Link.php b/core/lib/Drupal/Core/Render/Element/Link.php index aedc7d1208271708a97bab12ccf9c1922524fe0b..8021a809120d4f37f1e547603e17e9dd544f5e32 100644 --- a/core/lib/Drupal/Core/Render/Element/Link.php +++ b/core/lib/Drupal/Core/Render/Element/Link.php @@ -13,7 +13,7 @@ * * Properties: * - #title: The link text. - * - #url: \Drupal\Core\Url object containing URL information pointing to a + * - #url: \Drupal\Core\Url object containing URL information pointing to an * internal or external link. See \Drupal\Core\Utility\LinkGeneratorInterface. * * Usage example: @@ -69,7 +69,7 @@ public static function preRenderLink($element) { } // This #pre_render callback can be invoked from inside or outside of a Form - // API context, and depending on that, a HTML ID may be already set in + // API context, and depending on that, an HTML ID may be already set in // different locations. #options should have precedence over Form API's #id. // #attributes have been taken over into #options above already. if (isset($element['#options']['attributes']['id'])) { diff --git a/core/lib/Drupal/Core/Render/Element/PathElement.php b/core/lib/Drupal/Core/Render/Element/PathElement.php index ac0af2a6bc3dd0649bfbf26a301de9c251293584..86baff16d73f7096aa9ec6410754c66f78015f07 100644 --- a/core/lib/Drupal/Core/Render/Element/PathElement.php +++ b/core/lib/Drupal/Core/Render/Element/PathElement.php @@ -8,7 +8,7 @@ * Provides a matched path render element. * * Provides a form element to enter a path which can be optionally validated and - * stored as either a \Drupal\Core\Url value object or a array containing a + * stored as either a \Drupal\Core\Url value object or an array containing a * route name and route parameters pair. * * @FormElement("path") diff --git a/core/lib/Drupal/Core/Render/Element/Table.php b/core/lib/Drupal/Core/Render/Element/Table.php index eae77e642af28d34add512edece7d55c08a1accd..9313ff975bf9612c22a7320ea920c55ee7f130bf 100644 --- a/core/lib/Drupal/Core/Render/Element/Table.php +++ b/core/lib/Drupal/Core/Render/Element/Table.php @@ -382,7 +382,7 @@ public static function preRenderTable($element) { $element['#attributes']['class'][] = 'responsive-enabled'; } - // If the custom #tabledrag is set and there is a HTML ID, add the table's + // If the custom #tabledrag is set and there is an HTML ID, add the table's // HTML ID to the options and attach the behavior. if (!empty($element['#tabledrag']) && isset($element['#attributes']['id'])) { foreach ($element['#tabledrag'] as $options) { diff --git a/core/lib/Drupal/Core/Render/ElementInfoManager.php b/core/lib/Drupal/Core/Render/ElementInfoManager.php index da4ed76f18cacfc8d4a482042cf2c66bf77b6581..1de1f4c61c382470c0394cfe0bf642ecd054e7c2 100644 --- a/core/lib/Drupal/Core/Render/ElementInfoManager.php +++ b/core/lib/Drupal/Core/Render/ElementInfoManager.php @@ -45,7 +45,7 @@ class ElementInfoManager extends DefaultPluginManager implements ElementInfoMana protected $cacheTagInvalidator; /** - * Constructs a ElementInfoManager object. + * Constructs an ElementInfoManager object. * * @param \Traversable $namespaces * An object that implements \Traversable which contains the root paths diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php index 559c25624a0ea4332803f96ccce69c40938631c9..02620cbf1113092e65417ccf01633e64c74abb49 100644 --- a/core/lib/Drupal/Core/Render/Renderer.php +++ b/core/lib/Drupal/Core/Render/Renderer.php @@ -17,7 +17,7 @@ use Symfony\Component\HttpFoundation\RequestStack; /** - * Turns a render array into a HTML string. + * Turns a render array into an HTML string. */ class Renderer implements RendererInterface { use DoTrustedCallbackTrait; diff --git a/core/lib/Drupal/Core/Routing/MatcherDumperInterface.php b/core/lib/Drupal/Core/Routing/MatcherDumperInterface.php index 46c6cec34075d42c907c074cebd017b2dac2a920..365d987a33fedb10cd87028059e1c4cf94e46f7a 100644 --- a/core/lib/Drupal/Core/Routing/MatcherDumperInterface.php +++ b/core/lib/Drupal/Core/Routing/MatcherDumperInterface.php @@ -6,7 +6,7 @@ use Symfony\Component\Routing\RouteCollection; /** - * Extends the symfony matcher dumper interface with a addRoutes method. + * Extends the symfony matcher dumper interface with an addRoutes method. */ interface MatcherDumperInterface extends SymfonyMatcherDumperInterface { diff --git a/core/lib/Drupal/Core/SitePathFactory.php b/core/lib/Drupal/Core/SitePathFactory.php index 307d6aa42a0bf03482381f2b8700c435609a9f41..e83daf25a080fb5d36c407140ac010b6882f99bd 100644 --- a/core/lib/Drupal/Core/SitePathFactory.php +++ b/core/lib/Drupal/Core/SitePathFactory.php @@ -15,7 +15,7 @@ class SitePathFactory { protected $drupalKernel; /** - * Constructs an SitePathFactory instance. + * Constructs a SitePathFactory instance. * * @param \Drupal\Core\DrupalKernelInterface $drupal_kernel * The Drupal kernel. diff --git a/core/lib/Drupal/Core/Template/Attribute.php b/core/lib/Drupal/Core/Template/Attribute.php index fe9aace1f00a3b8ad53c0dc283525cba4c893fd5..e0ca3ba6ac9987ef40b7b91f93c846688fb81c6d 100644 --- a/core/lib/Drupal/Core/Template/Attribute.php +++ b/core/lib/Drupal/Core/Template/Attribute.php @@ -38,7 +38,7 @@ * * The attribute keys and values are automatically escaped for output with * Html::escape(). No protocol filtering is applied, so when using user-entered - * input as a value for an attribute that expects an URI (href, src, ...), + * input as a value for an attribute that expects a URI (href, src, ...), * UrlHelper::stripDangerousProtocols() should be used to ensure dangerous * protocols (such as 'javascript:') are removed. For example: * @code diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php index f8b156ad5eae4b88a07a9760d70eb718537fe859..7deda60a356d3f5ba669e6bd913d91d07478f924 100644 --- a/core/lib/Drupal/Core/Template/TwigExtension.php +++ b/core/lib/Drupal/Core/Template/TwigExtension.php @@ -501,7 +501,7 @@ protected function bubbleArgMetadata($arg) { * RenderableInterface or toString(). * * @return mixed - * The rendered output or an \Twig\Markup object. + * The rendered output or a \Twig\Markup object. * * @see render * @see TwigNodeVisitor diff --git a/core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php b/core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php index c429a63c2ef420bb619c0c461d99a794150c8cd3..36fde8b236570adc78fd4b8d4f523444027ce7ce 100644 --- a/core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php +++ b/core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php @@ -10,7 +10,7 @@ * While possible values specify which values existing data might have, settable * values define the values that are allowed to be set by a user. * - * For example, in an workflow scenario, the settable values for a state field + * For example, in a workflow scenario, the settable values for a state field * might depend on the currently set state, while possible values are all * states. Thus settable values would be used in an editing context, while * possible values would be used for presenting filtering options in a search. diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php index e51e5055b9b5f2eb16864aeb33696e9d8ea9feaa..b7a719eb5d34310a170ca1550484dcf8cf245e97 100644 --- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php +++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php @@ -10,7 +10,7 @@ * * The plain value of binary data is a PHP file resource, see * http://php.net/manual/language.types.resource.php. For setting the value - * a PHP file resource or a (absolute) stream resource URI may be passed. + * a PHP file resource or an (absolute) stream resource URI may be passed. * * @DataType( * id = "binary", @@ -48,7 +48,7 @@ public function getValue() { /** * Overrides TypedData::setValue(). * - * Supports a PHP file resource or a (absolute) stream resource URI as value. + * Supports a PHP file resource or an (absolute) stream resource URI as value. */ public function setValue($value, $notify = TRUE) { if (!isset($value)) { diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/DurationIso8601.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/DurationIso8601.php index 8b3899acf786b7facbc9cc415ed33af0566aa46b..00890583910d7233fb8c50571fd358b9f4b132f7 100644 --- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/DurationIso8601.php +++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/DurationIso8601.php @@ -7,7 +7,7 @@ /** * The duration ISO8601 data type. * - * The plain value of this data type is a ISO8601 duration string. + * The plain value of this data type is an ISO8601 duration string. * * @DataType( * id = "duration_iso8601", diff --git a/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php b/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php index b8bdd3a04aa41dc90eb5b00e585ef7104198eab1..80f13c1f2052e01586793db36adeb28b27ecf176 100644 --- a/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php +++ b/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php @@ -9,7 +9,7 @@ * * The plain value of binary data is a PHP file resource, see * http://php.net/manual/language.types.resource.php. For setting the value - * a PHP file resource or a (absolute) stream resource URI may be passed. + * a PHP file resource or an (absolute) stream resource URI may be passed. * * @ingroup typed_data */ diff --git a/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php b/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php index 29723c6fc195ef59b377afb13410f8113f6432c0..ab04335bb979ef1ecbd226040e6c680b5ee13922 100644 --- a/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php +++ b/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php @@ -146,7 +146,7 @@ public function getInstance(array $options); * The parent typed data object, implementing the TypedDataInterface and * either the ListInterface or the ComplexDataInterface. * @param string $property_name - * The name of the property to instantiate, or the delta of an list item. + * The name of the property to instantiate, or the delta of a list item. * @param mixed $value * (optional) The data value. If set, it has to match one of the supported * data type formats as documented by the data type classes. diff --git a/core/lib/Drupal/Core/Updater/UpdaterException.php b/core/lib/Drupal/Core/Updater/UpdaterException.php index befc78c7ee5179e21aa047780a83af1cb6960d21..2d1f828eb6e391c5dd03910e6b87d47fbe0cf750 100644 --- a/core/lib/Drupal/Core/Updater/UpdaterException.php +++ b/core/lib/Drupal/Core/Updater/UpdaterException.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Updater; /** - * Defines a Exception class for the Drupal\Core\Updater\Updater class + * Defines an Exception class for the Drupal\Core\Updater\Updater class * hierarchy. * * This is identical to the base Exception class, we just give it a more diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php index 05c53c3e8bb9f2aaa5f935969bff9af36fa7ec89..425d0daacdcf85c6f5ab31059e0ee5bb1c4ed90c 100644 --- a/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -334,7 +334,7 @@ public static function fromUri($uri, $options = []) { * Create a new Url object for entity URIs. * * @param array $uri_parts - * Parts from an URI of the form entity:{entity_type}/{entity_id} as from + * Parts from a URI of the form entity:{entity_type}/{entity_id} as from * parse_url(). * @param array $options * An array of options, see \Drupal\Core\Url::fromUri() for details. @@ -387,12 +387,12 @@ protected static function fromEntityUri(array $uri_parts, array $options, $uri) * - 'internal:/some-path' (path component is '/some-path') to 'some-path' * * @param array $uri_parts - * Parts from an URI of the form internal:{path} as from parse_url(). + * Parts from a URI of the form internal:{path} as from parse_url(). * @param array $options * An array of options, see \Drupal\Core\Url::fromUri() for details. * * @return static - * A new Url object for a 'internal:' URI. + * A new Url object for an 'internal:' URI. * * @throws \InvalidArgumentException * Thrown when the URI's path component doesn't have a leading slash. @@ -432,7 +432,7 @@ protected static function fromInternalUri(array $uri_parts, array $options) { * Creates a new Url object for 'route:' URIs. * * @param array $uri_parts - * Parts from an URI of the form route:{route_name};{route_parameters} as + * Parts from a URI of the form route:{route_name};{route_parameters} as * from parse_url(), where the path is the route name optionally followed by * a ";" followed by route parameters in key=value format with & separators. * @param array $options @@ -511,7 +511,7 @@ protected function setUnrouted() { * Generates a URI string that represents the data in the Url object. * * The URI will typically have the scheme of route: even if the object was - * constructed using an entity: or internal: scheme. A internal: URI that + * constructed using an entity: or internal: scheme. An internal: URI that * does not match a Drupal route with be returned here with the base: scheme, * and external URLs will be returned in their original form. * diff --git a/core/lib/Drupal/Core/Utility/ProjectInfo.php b/core/lib/Drupal/Core/Utility/ProjectInfo.php index 63e17da2abf1f014e7df92a06001f171f96fc9c2..ef7d7faf2ce3fc3f2f2ebab7c59623146f2477ed 100644 --- a/core/lib/Drupal/Core/Utility/ProjectInfo.php +++ b/core/lib/Drupal/Core/Utility/ProjectInfo.php @@ -130,7 +130,7 @@ public function processInfoList(array &$projects, array $list, $project_type, $s } elseif (empty($status)) { // If we have a project_name that matches, but the project_display_type - // does not, it means we're processing a uninstalled module or theme + // does not, it means we're processing an uninstalled module or theme // that belongs to a project that has some enabled code. In this case, // we add the uninstalled thing into a separate array for separate // display. diff --git a/core/misc/ajax.es6.js b/core/misc/ajax.es6.js index ce7407eaf0b50d6d7abe0c9de00c5cf6e0956cd1..da88f45f9e74cecd7d397a4d4bf4b6af56ba6fc7 100644 --- a/core/misc/ajax.es6.js +++ b/core/misc/ajax.es6.js @@ -1208,7 +1208,7 @@ * @param {string} [response.method] * The jQuery DOM manipulation method to be used. * @param {string} [response.selector] - * A optional jQuery selector string. + * An optional jQuery selector string. * @param {object} [response.settings] * An optional array of settings that will be used. */ diff --git a/core/misc/autocomplete.es6.js b/core/misc/autocomplete.es6.js index 82a79eb9d9e304d4a66e779270f6adbb98faa8f8..c747986d141fd5546094fb5e0e5f0dbb4ef8e4b5 100644 --- a/core/misc/autocomplete.es6.js +++ b/core/misc/autocomplete.es6.js @@ -45,7 +45,7 @@ } /** - * Returns the last value of an multi-value textfield. + * Returns the last value of a multi-value textfield. * * @function Drupal.autocomplete.extractLastTerm * diff --git a/core/misc/dialog/dialog.ajax.es6.js b/core/misc/dialog/dialog.ajax.es6.js index c67290ddc2c08cf6b2cdfd8513a1318642bb1a09..e481bdfa5f52b76837b103d7ed1af30faacaef88 100644 --- a/core/misc/dialog/dialog.ajax.es6.js +++ b/core/misc/dialog/dialog.ajax.es6.js @@ -54,7 +54,7 @@ * Scan a dialog for any primary buttons and move them to the button area. * * @param {jQuery} $dialog - * An jQuery object containing the element that is the dialog target. + * A jQuery object containing the element that is the dialog target. * * @return {Array} * An array of buttons that need to be added to the button area. diff --git a/core/misc/dialog/off-canvas.es6.js b/core/misc/dialog/off-canvas.es6.js index f8e3fab491bb355950bdfc68408793a266ee7e55..adbce2ddf8277272cd0bdac0f0664f939f581a0b 100644 --- a/core/misc/dialog/off-canvas.es6.js +++ b/core/misc/dialog/off-canvas.es6.js @@ -8,7 +8,7 @@ * Off-canvas dialog implementation using jQuery Dialog. * * Transforms the regular dialogs created using Drupal.dialog when the dialog - * element equals '#drupal-off-canvas' into an side-loading dialog. + * element equals '#drupal-off-canvas' into a side-loading dialog. * * @namespace */ diff --git a/core/modules/aggregator/src/Plugin/AggregatorPluginManager.php b/core/modules/aggregator/src/Plugin/AggregatorPluginManager.php index 96de3b5ed027e20c76e651f86c1f5e5d9c6fd5bf..7c2bb96dc39688d5923744f89cce6090ca159563 100644 --- a/core/modules/aggregator/src/Plugin/AggregatorPluginManager.php +++ b/core/modules/aggregator/src/Plugin/AggregatorPluginManager.php @@ -21,7 +21,7 @@ class AggregatorPluginManager extends DefaultPluginManager { /** - * Constructs a AggregatorPluginManager object. + * Constructs an AggregatorPluginManager object. * * @param string $type * The plugin type, for example fetcher. diff --git a/core/modules/aggregator/src/Plugin/views/row/Rss.php b/core/modules/aggregator/src/Plugin/views/row/Rss.php index 464a28592e4d25cbba8e05e5c3ca0b18ed98c365..3bfd457ad8fe6425a6362578fe869c24e453c761 100644 --- a/core/modules/aggregator/src/Plugin/views/row/Rss.php +++ b/core/modules/aggregator/src/Plugin/views/row/Rss.php @@ -26,7 +26,7 @@ class Rss extends RssPluginBase { public $base_table = 'aggregator_item'; /** - * The actual field which is used to identify a aggregator item. + * The actual field which is used to identify an aggregator item. * * @var string */ diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php index cd128cae0508e2cb4d6d2945dca2a98d4cdd1d52..761c89d9226100075526010a35fdf19157a7a21a 100644 --- a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php +++ b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php @@ -333,7 +333,7 @@ public function getEmptyOpml() { } /** - * Returns a example RSS091 feed. + * Returns an example RSS091 feed. * * @return string * Path to the feed. @@ -343,7 +343,7 @@ public function getRSS091Sample() { } /** - * Returns a example Atom feed. + * Returns an example Atom feed. * * @return string * Path to the feed. @@ -355,7 +355,7 @@ public function getAtomSample() { } /** - * Returns a example feed. + * Returns an example feed. * * @return string * Path to the feed. diff --git a/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php b/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php index 51c1689d0eafbd7336f00a5d40d91785fe7018d8..9ad4196da325a7990c710855f6e0cf0bf08dc8c8 100644 --- a/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php +++ b/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php @@ -91,7 +91,7 @@ public function testAggregatorItemView() { $values['timestamp'] = mt_rand(REQUEST_TIME - 10, REQUEST_TIME + 10); $values['title'] = $this->randomMachineName(); $values['description'] = $this->randomMachineName(); - // Add a image to ensure that the sanitizing can be tested below. + // Add an image to ensure that the sanitizing can be tested below. $values['author'] = $this->randomMachineName() . '"'; $values['link'] = 'https://www.drupal.org/node/' . mt_rand(1000, 10000); $values['guid'] = $this->randomString(); diff --git a/core/modules/big_pipe/src/Render/BigPipe.php b/core/modules/big_pipe/src/Render/BigPipe.php index f21640bc4e5cefbb0a9c1624cfa1e9a31a4f1051..9bbe7d99c2cb331bd11525846231b2aadf268612 100644 --- a/core/modules/big_pipe/src/Render/BigPipe.php +++ b/core/modules/big_pipe/src/Render/BigPipe.php @@ -23,7 +23,7 @@ /** * Service for sending an HTML response in chunks (to get faster page loads). * - * At a high level, BigPipe sends a HTML response in chunks: + * At a high level, BigPipe sends an HTML response in chunks: * 1. one chunk: everything until just before — this contains BigPipe * placeholders for the personalized parts of the page. Hence this sends the * non-personalized parts of the page. Let's call it The Skeleton. @@ -58,7 +58,7 @@ * the logic though, we choose to call this "no-JS BigPipe". * * However, there is also a tangible benefit: some dynamic/expensive content is - * not HTML, but for example a HTML attribute value (or part thereof). It's not + * not HTML, but for example an HTML attribute value (or part thereof). It's not * possible to efficiently replace such content using JavaScript, so "classic" * BigPipe is out of the question. For example: CSRF tokens in URLs. * @@ -68,7 +68,7 @@ * Finally, a closer look at the implementation, and how it supports and reuses * existing Drupal concepts: * 1. BigPipe placeholders: 1 HtmlResponse + N embedded AjaxResponses. - * - Before a BigPipe response is sent, it is just a HTML response that + * - Before a BigPipe response is sent, it is just an HTML response that * contains BigPipe placeholders. Those placeholders look like * . JavaScript is used to * replace those placeholders. @@ -76,9 +76,9 @@ * - The Skeleton of course has attachments, including most notably asset * libraries. And those we track in drupalSettings.ajaxPageState.libraries — * so that when we load new content through AJAX, we don't load the same - * asset libraries again. A HTML page can have multiple AJAX responses, each - * of which should take into account the combined AJAX page state of the - * HTML document and all preceding AJAX responses. + * asset libraries again. An HTML page can have multiple AJAX responses, + * each of which should take into account the combined AJAX page state of + * the HTML document and all preceding AJAX responses. * - BigPipe does not make use of multiple AJAX requests/responses. It uses a * single HTML response. But it is a more long-lived one: The Skeleton is * sent first, the closing tag is not yet sent, and the connection @@ -100,7 +100,7 @@ * 1. if it's a * placeholder that will be replaced by HTML * 2. big_pipe_nojs_placeholder_attribute_safe:… if it's a placeholder - * inside a HTML attribute, in which 1. would be invalid (angle brackets + * inside an HTML attribute, in which 1. would be invalid (angle brackets * are not allowed inside HTML attributes) * No-JS BigPipe placeholders are not replaced using JavaScript, they must * be replaced upon sending the BigPipe response. So, while the response is @@ -526,7 +526,7 @@ protected function sendPlaceholders(array $placeholders, array $placeholder_orde // Send the start signal. $this->sendChunk("\n" . static::START_SIGNAL . "\n"); - // A BigPipe response consists of a HTML response plus multiple embedded + // A BigPipe response consists of an HTML response plus multiple embedded // AJAX responses. To process the attachments of those AJAX responses, we // need a fake request that is identical to the master request, but with // one change: it must have the right Accept header, otherwise the work- @@ -617,7 +617,7 @@ protected function sendPlaceholders(array $placeholders, array $placeholder_orde * A fake subrequest that contains the cumulative AJAX page state of the * HTML document and all preceding Embedded HTML or AJAX responses. * @param \Symfony\Component\HttpFoundation\Response|\Drupal\Core\Render\HtmlResponse|\Drupal\Core\Ajax\AjaxResponse $embedded_response - * Either a HTML response or an AJAX response that will be embedded in the + * Either an HTML response or an AJAX response that will be embedded in the * overall HTML response. * * @return \Symfony\Component\HttpFoundation\Response @@ -752,7 +752,7 @@ protected function getPlaceholderOrder($html, $placeholders) { } /** - * Splits a HTML string into fragments. + * Splits an HTML string into fragments. * * Creates an array of HTML fragments, separated by placeholders. The result * includes the placeholders themselves. The original order is respected. diff --git a/core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php b/core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php index bd022f2ef3721942897b736a958ef17170800dca..69945eca6aba008b35b911f802629d19a1059b9e 100644 --- a/core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php +++ b/core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php @@ -176,8 +176,8 @@ protected function doProcessPlaceholders(array $placeholders) { * A placeholder. * * @return bool - * Whether the placeholder is safe for use in a HTML attribute (in case it's - * a placeholder for a HTML attribute value or a subset of it). + * Whether the placeholder is safe for use in an HTML attribute (in case + * it's a placeholder for an HTML attribute value or a subset of it). */ protected static function placeholderIsAttributeSafe($placeholder) { assert(is_string($placeholder)); @@ -229,8 +229,8 @@ protected static function createBigPipeJsPlaceholder($original_placeholder, arra * @param array $placeholder_render_array * The render array for a placeholder. * @param bool $placeholder_must_be_attribute_safe - * Whether the placeholder must be safe for use in a HTML attribute (in case - * it's a placeholder for a HTML attribute value or a subset of it). + * Whether the placeholder must be safe for use in an HTML attribute (in + * case it's a placeholder for an HTML attribute value or a subset of it). * * @return array * The resulting BigPipe no-JS placeholder render array. diff --git a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php index b15fa160ec71a1296e50c674d642b5be1fd8278e..5bb3505500bb219d2ecc989f624f14983fd30870 100644 --- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php +++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php @@ -9,7 +9,7 @@ class BigPipeTestController implements TrustedCallbackInterface { /** - * Returns a all BigPipe placeholder test case render arrays. + * Returns all BigPipe placeholder test case render arrays. * * @return array */ diff --git a/core/modules/block/src/BlockListBuilder.php b/core/modules/block/src/BlockListBuilder.php index 01ae598616e96feb960abd84c4cfb18daea66121..eb38b44ec036451aba70432ec3fc8a585ebd4e6b 100644 --- a/core/modules/block/src/BlockListBuilder.php +++ b/core/modules/block/src/BlockListBuilder.php @@ -182,7 +182,7 @@ protected function buildBlocksForm() { // Weights range from -delta to +delta, so delta should be at least half // of the amount of blocks present. This makes sure all blocks in the same - // region get an unique weight. + // region get a unique weight. $weight_delta = round(count($entities) / 2); $placement = FALSE; diff --git a/core/modules/block_content/src/Access/RefinableDependentAccessInterface.php b/core/modules/block_content/src/Access/RefinableDependentAccessInterface.php index 469de52b8a2c66d1bdb344038614e3102f55f648..5d9eaf430b435cb29ebc5621f382b661d5effe0d 100644 --- a/core/modules/block_content/src/Access/RefinableDependentAccessInterface.php +++ b/core/modules/block_content/src/Access/RefinableDependentAccessInterface.php @@ -35,7 +35,7 @@ public function setAccessDependency(AccessibleInterface $access_dependency); * instance with the existing and new dependencies as the members of the * group. * - * If there is an existing dependency and it is a instance of AccessGroupAnd + * If there is an existing dependency and it is an instance of AccessGroupAnd * the dependency will be added to the existing access group. * * @param \Drupal\Core\Access\AccessibleInterface $access_dependency diff --git a/core/modules/book/src/BookManagerInterface.php b/core/modules/book/src/BookManagerInterface.php index bee18c045903f16c756727b7d3f7a645ec6a4118..44107f2f9066dfa34f9c49e746cce0ec4bbb124e 100644 --- a/core/modules/book/src/BookManagerInterface.php +++ b/core/modules/book/src/BookManagerInterface.php @@ -31,7 +31,7 @@ interface BookManagerInterface { * $link, in which case $max_depth should be greater than $link['depth']. * * @return array - * An tree of menu links in an array, in the order they should be rendered. + * A tree of menu links in an array, in the order they should be rendered. */ public function bookTreeAllData($bid, $link = NULL, $max_depth = NULL); diff --git a/core/modules/breakpoint/src/BreakpointManager.php b/core/modules/breakpoint/src/BreakpointManager.php index 30caf27ebeb349408e0d479b636c744e387ba3ee..2e70062a8564bd9ebe824fef9985585088c39292 100644 --- a/core/modules/breakpoint/src/BreakpointManager.php +++ b/core/modules/breakpoint/src/BreakpointManager.php @@ -16,7 +16,7 @@ /** * Defines a breakpoint plugin manager to deal with breakpoints. * - * Extension can define breakpoints in a EXTENSION_NAME.breakpoints.yml file + * Extension can define breakpoints in an EXTENSION_NAME.breakpoints.yml file * contained in the extension's base directory. Each breakpoint has the * following structure: * @code diff --git a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php index 5802e58ca759c59b49aecce6749a9abdc7473b43..6fab6afcfa232020821f49f3dfaa5af24b0bbcaf 100644 --- a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php +++ b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php @@ -49,7 +49,7 @@ public function testColorPreview() { \Drupal::service('theme_installer')->install(['color_test_theme']); $this->drupalLogin($this->bigUser); - // Markup is being printed from a HTML file located in: + // Markup is being printed from an HTML file located in: // core/modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html $url = Url::fromRoute('system.theme_settings_theme', ['theme' => 'color_test_theme']); $this->drupalGet($url); diff --git a/core/modules/comment/comment.tokens.inc b/core/modules/comment/comment.tokens.inc index 38529c959d47cdffde31695f0687dd961b451ca4..dc16a7d767a1a11433f48d8a162608398c73c2c5 100644 --- a/core/modules/comment/comment.tokens.inc +++ b/core/modules/comment/comment.tokens.inc @@ -22,7 +22,7 @@ function comment_token_info() { ]; $tokens = []; - // Provide a integration for each entity type except comment. + // Provides an integration for each entity type except comment. foreach (\Drupal::entityTypeManager()->getDefinitions() as $entity_type_id => $entity_type) { if ($entity_type_id == 'comment' || !$entity_type->entityClassImplements(ContentEntityInterface::class)) { continue; diff --git a/core/modules/comment/comment.views.inc b/core/modules/comment/comment.views.inc index e5df31a1a05b3d2c3cd7c3faa3f87ffbcd734da4..f9d83dbef96b43efd729b38423adcede481c9e57 100644 --- a/core/modules/comment/comment.views.inc +++ b/core/modules/comment/comment.views.inc @@ -22,7 +22,7 @@ function comment_views_data_alter(&$data) { ], ]; - // Provide a integration for each entity type except comment. + // Provides an integration for each entity type except comment. foreach (\Drupal::entityTypeManager()->getDefinitions() as $entity_type_id => $entity_type) { if ($entity_type_id == 'comment' || !$entity_type->entityClassImplements(ContentEntityInterface::class) || !$entity_type->getBaseTable()) { continue; diff --git a/core/modules/comment/src/CommentFieldItemList.php b/core/modules/comment/src/CommentFieldItemList.php index 73215e86981615aa6cf6d395cee3de263ce56be3..60311ceeba478509d552dac63c0427513532caf5 100644 --- a/core/modules/comment/src/CommentFieldItemList.php +++ b/core/modules/comment/src/CommentFieldItemList.php @@ -7,7 +7,7 @@ use Drupal\Core\Session\AccountInterface; /** - * Defines a item list class for comment fields. + * Defines an item list class for comment fields. */ class CommentFieldItemList extends FieldItemList { diff --git a/core/modules/comment/src/Controller/CommentController.php b/core/modules/comment/src/Controller/CommentController.php index b44cf13245cba0457ede8a69b6da1de4e19f85ef..2cba4ac918df84b83351010d536b203a8f1586c8 100644 --- a/core/modules/comment/src/Controller/CommentController.php +++ b/core/modules/comment/src/Controller/CommentController.php @@ -242,7 +242,7 @@ public function getReplyForm(Request $request, EntityInterface $entity, $field_n $build['comment_parent'] = $this->entityTypeManager()->getViewBuilder('comment')->view($comment); } - // The comment is in response to a entity. + // The comment is in response to an entity. elseif ($entity->access('view', $account)) { // We make sure the field value isn't set so we don't end up with a // redirect loop. diff --git a/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php b/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php index f02aa3386653f8f8c1b1d408f63005aa3ca38026..b0eb8bb50bbb2a6235e2c98242ba4cd86fad0c14 100644 --- a/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php +++ b/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php @@ -37,7 +37,7 @@ class UnpublishByKeywordComment extends ConfigurableActionBase implements Contai protected $renderer; /** - * Constructs a UnpublishByKeywordComment object. + * Constructs an UnpublishByKeywordComment object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php b/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php index 410fd6701aef43167ecc95ba98c469653ebe674c..d096a3b53226430a5ee9cf97f072c37461af4731 100644 --- a/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php +++ b/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php @@ -33,7 +33,7 @@ class EntityComment extends EntityContentBase { protected $stubCommentedEntityIds; /** - * Builds an comment entity destination. + * Builds a comment entity destination. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php index 64cdc6079e814f5acc2f7ca3c83061af556119cf..033dab80c1991ec6270693543204b3d01524339b 100644 --- a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php +++ b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php @@ -227,7 +227,7 @@ public function getLinkCombinations() { // If the view mode is teaser, or the user can access comments and // comments exist or the form is on a separate page. if ($combination['view_mode'] == 'teaser' || ($combination['has_access_comments'] && $combination['comment_count']) || $combination['form_location'] == CommentItemInterface::FORM_SEPARATE_PAGE) { - // There should be a add comment link. + // There should be an add comment link. $expected['comment-add'] = ['title' => 'Add new comment']; if ($combination['form_location'] == CommentItemInterface::FORM_BELOW) { // On the same page. diff --git a/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php b/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php index 114468b419dc6f983fbb162021ac666cc698b9ac..feea86fbf5d9f3b9057c2a8ae2722a47f4a1ad5f 100644 --- a/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php +++ b/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php @@ -173,7 +173,7 @@ public function testExportImport() { $this->assertText($this->contentType->label()); $this->drupalPostForm(NULL, [], 'Import all'); - // After importing the snapshot has been updated an there are no warnings. + // After importing the snapshot has been updated and there are no warnings. $this->assertNoText('Warning message'); $this->assertText('There are no configuration changes to import.'); diff --git a/core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php b/core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php index 4e510aaf38e48e601edb0cc87b01d60c967d21ba..0d612a7a356a8dc6621886c0b03fa8e83cd56c1b 100644 --- a/core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php +++ b/core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php @@ -14,7 +14,7 @@ class ConfigTranslationMapperList extends ControllerBase { /** - * A array of configuration mapper instances. + * An array of configuration mapper instances. * * @var \Drupal\config_translation\ConfigMapperInterface[] */ diff --git a/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php b/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php index 9f09a9a8908edcd1a66c80f7e2f794fe2e792c2b..49fb4740bc6eb5fc2a8a2af1620ab497e9ac2011 100644 --- a/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php +++ b/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php @@ -40,7 +40,7 @@ class DynamicLocalTasks extends DeriverBase implements ContainerDeriverInterface protected $moderationInfo; /** - * Creates an FieldUiLocalTask object. + * Creates a FieldUiLocalTask object. * * @param string $base_plugin_id * The base plugin ID. diff --git a/core/modules/content_translation/migrations/node_translation_menu_links.yml b/core/modules/content_translation/migrations/node_translation_menu_links.yml index d6809f8fa601e377af435391fa028cfa101bb40a..5fa28654a0ac1ba7b47c1a931db0b4c3a084ec13 100644 --- a/core/modules/content_translation/migrations/node_translation_menu_links.yml +++ b/core/modules/content_translation/migrations/node_translation_menu_links.yml @@ -38,7 +38,7 @@ process: new_nid: - # If the path is of the form "node/" and is not routed, we will get - # back an URI of the form "base:node/". + # back a URI of the form "base:node/". plugin: link_uri source: link_path validate_route: false diff --git a/core/modules/datetime/tests/src/Functional/DateTestBase.php b/core/modules/datetime/tests/src/Functional/DateTestBase.php index 0a85d7a60bb0a3c1edeb0f58f55671601b68a3d5..805ea0d4d9d4cf12ef1167e1bc8ff19094df9401 100644 --- a/core/modules/datetime/tests/src/Functional/DateTestBase.php +++ b/core/modules/datetime/tests/src/Functional/DateTestBase.php @@ -151,7 +151,7 @@ protected function createField() { } /** - * Renders a entity_test and sets the output in the internal browser. + * Renders an entity_test and sets the output in the internal browser. * * @param int $id * The entity_test ID to render. diff --git a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php index 23ea25897dfee9ce7a451ac188362dd7b4d2ce2c..8cdc936c5e91db6a264fdd0652feeb5dbfd19e75 100644 --- a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php +++ b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php @@ -466,7 +466,7 @@ public function testAlldayRangeField() { $field_name = $this->fieldStorage->getName(); $field_label = $this->field->label(); - // Ensure field is set to a all-day field. + // Ensure field is set to an all-day field. $this->fieldStorage->setSetting('datetime_type', DateRangeItem::DATETIME_TYPE_ALLDAY); $this->fieldStorage->save(); diff --git a/core/modules/dblog/tests/src/Kernel/ConnectionFailureTest.php b/core/modules/dblog/tests/src/Kernel/ConnectionFailureTest.php index b17c138d131e2c4bd0782059623d621ab577b992..3aaf8232af1a06cc6d79a9a0e72861c850a1f388 100644 --- a/core/modules/dblog/tests/src/Kernel/ConnectionFailureTest.php +++ b/core/modules/dblog/tests/src/Kernel/ConnectionFailureTest.php @@ -26,7 +26,7 @@ public function testConnectionFailureLogging() { // MySQL errors like "1153 - Got a packet bigger than 'max_allowed_packet' // bytes" or "1100 - Table 'xyz' was not locked with LOCK TABLES" lead to a // database connection unusable for further requests. All further request - // will result in an "2006 - MySQL server had gone away" error. As a + // will result in a "2006 - MySQL server had gone away" error. As a // consequence it's impossible to use this connection to log the causing // initial error itself. Using Database::closeConnection() we simulate such // a corrupted connection. In this case dblog has to establish a different diff --git a/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php b/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php index 49deda3057bfa311e3540d610a2198f1d42afeda..fcf640f67e421a0eb4a6348a22456844ca8715ec 100644 --- a/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php +++ b/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php @@ -96,7 +96,7 @@ public function testDynamicPageCache() { $this->assertSession()->responseHeaderEquals(DynamicPageCacheSubscriber::HEADER, 'HIT'); } - // Controllers returning render arrays, rendered as anything except a HTML + // Controllers returning render arrays, rendered as anything except an HTML // response, are ignored by Dynamic Page Cache (but only because those // wrapper formats' responses do not implement CacheableResponseInterface). $this->drupalGet('dynamic-page-cache-test/html', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']]); diff --git a/core/modules/editor/js/editor.admin.es6.js b/core/modules/editor/js/editor.admin.es6.js index 744c4d975f7890f044a43371e2904873f587641e..2b97cfa3fcf3581bf166140148350cb29d1e4e09 100644 --- a/core/modules/editor/js/editor.admin.es6.js +++ b/core/modules/editor/js/editor.admin.es6.js @@ -765,7 +765,7 @@ }; /** - * Adds a HTML rule to the list of HTML rules for this feature. + * Adds an HTML rule to the list of HTML rules for this feature. * * @param {Drupal.EditorFeatureHTMLRule} rule * A text editor feature HTML rule. @@ -818,7 +818,7 @@ }; /** - * Adds a HTML rule to the list of HTML rules for this filter. + * Adds an HTML rule to the list of HTML rules for this filter. * * @param {Drupal.FilterHTMLRule} rule * A text filter HTML rule. diff --git a/core/modules/editor/src/Ajax/EditorDialogSave.php b/core/modules/editor/src/Ajax/EditorDialogSave.php index 48a7867ad621d0a93d1426bdf46f0d1d17519ee2..880f536c95ca1187cc93ff56a9962fcbd21d6434 100644 --- a/core/modules/editor/src/Ajax/EditorDialogSave.php +++ b/core/modules/editor/src/Ajax/EditorDialogSave.php @@ -20,7 +20,7 @@ class EditorDialogSave implements CommandInterface { protected $values; /** - * Constructs a EditorDialogSave object. + * Constructs an EditorDialogSave object. * * @param string $values * The values that should be passed to the form constructor in Drupal. diff --git a/core/modules/editor/tests/src/Functional/EditorAdminTest.php b/core/modules/editor/tests/src/Functional/EditorAdminTest.php index 556c16d75e9c0c9844eac7dcea816e1cead69553..4015bd1403c7c3f792c95484708d25015e2aba37 100644 --- a/core/modules/editor/tests/src/Functional/EditorAdminTest.php +++ b/core/modules/editor/tests/src/Functional/EditorAdminTest.php @@ -137,7 +137,7 @@ public function testDisableFormatWithEditor() { $node->body->format = 'monoceros'; $node->save(); - // Log in as an user able to use both formats and edit nodes of created type. + // Log in as a user able to use both formats and edit nodes of created type. $account = $this->drupalCreateUser($permissions); $this->drupalLogin($account); diff --git a/core/modules/editor/tests/src/Functional/EditorLoadingTest.php b/core/modules/editor/tests/src/Functional/EditorLoadingTest.php index 1cdf63b074dde4a38875370fd0d188ca7697614a..c3579936fb5ca51569a52686ea3f4a4ad3ac066f 100644 --- a/core/modules/editor/tests/src/Functional/EditorLoadingTest.php +++ b/core/modules/editor/tests/src/Functional/EditorLoadingTest.php @@ -259,7 +259,7 @@ public function testSupportedElementTypes() { ]); $editor->save(); - // Create an "page" node that uses the full_html text format. + // Create a "page" node that uses the full_html text format. $this->drupalCreateNode([ 'type' => 'page', 'field_text' => [ diff --git a/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php b/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php index 076d4ac8d5375e96a49aef7c694030c1dcc3d3de..7a4bae5f53868593a15c033d92664c2e95f7f4ef 100644 --- a/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php +++ b/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php @@ -91,7 +91,7 @@ public function testUsersWithoutPermission() { $client = $this->getHttpClient(); - // Retrieving the untransformed text should result in an 403 response and + // Retrieving the untransformed text should result in a 403 response and // return a different error message depending of the missing permission. $response = $client->post($this->buildUrl('editor/node/1/body/en/full'), [ 'query' => http_build_query([MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']), diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php index 6899c66008b034527681b0e1148dc6a889cd577f..ffc1652d3ddd230caeabdd3d6f51db81020812ed 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php @@ -78,7 +78,7 @@ protected function setUp(): void { */ public function testFieldAdminHandler() { $bundle_path = 'admin/structure/types/manage/' . $this->type; - // Create a new view and display it as a entity reference. + // Create a new view and display it as an entity reference. $edit = [ 'id' => 'node_test_view', 'label' => 'Node Test View', diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php index 5fb84bf3fefccfb6774dedb3c1e21dba19581ed1..b8893e534e126884398d610b248d187ad3f1b2c8 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php @@ -107,7 +107,7 @@ class EntityReferenceFieldTranslatedReferenceViewTest extends BrowserTestBase { protected $translatedLabel; /** - * An user with permission to edit the referrer entity. + * A user with permission to edit the referrer entity. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php index 910bd4e0333ebd88d51e81096586268c44b75ef3..82804909e76bb8988f6bb77f8d55dffaf65e103c 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php @@ -89,7 +89,7 @@ public function testSupportedEntityTypesAndWidgets() { $edit = [ 'name[0][value]' => $entity_name, $this->fieldName . '[0][target_id]' => $referenced_entities[0]->label() . ' (' . $referenced_entities[0]->id() . ')', - // Test an input of the entity label without a ' (entity_id)' suffix. + // Test an input of the entity label without an ' (entity_id)' suffix. $this->fieldName . '[1][target_id]' => $referenced_entities[1]->label(), ]; $this->drupalPostForm($this->entityType . '/add', $edit, t('Save')); @@ -115,7 +115,7 @@ public function testSupportedEntityTypesAndWidgets() { $entity_name = $this->randomMachineName(); $target_id = $referenced_entities[0]->label() . ' (' . $referenced_entities[0]->id() . ')'; - // Test an input of the entity label without a ' (entity_id)' suffix. + // Test an input of the entity label without an ' (entity_id)' suffix. $target_id .= ', ' . $referenced_entities[1]->label(); $edit = [ 'name[0][value]' => $entity_name, diff --git a/core/modules/field_ui/src/Element/FieldUiTable.php b/core/modules/field_ui/src/Element/FieldUiTable.php index 3c9a14b78ba6f340623f6472db8b36070bda7e67..839a0ed5f44a48434150009cfb44d87842f17b61 100644 --- a/core/modules/field_ui/src/Element/FieldUiTable.php +++ b/core/modules/field_ui/src/Element/FieldUiTable.php @@ -110,7 +110,7 @@ public static function tablePreRender($elements) { $elements['#attached']['drupalSettings']['fieldUIRowsData'] = $js_settings; - // If the custom #tabledrag is set and there is a HTML ID, add the table's + // If the custom #tabledrag is set and there is an HTML ID, add the table's // HTML ID to the options and attach the behavior. // @see \Drupal\Core\Render\Element\Table::preRenderTable() if (!empty($elements['#tabledrag']) && isset($elements['#attributes']['id'])) { diff --git a/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php b/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php index e762ab572e834878808d2067c840fb47e4de3098..979942b9657d4c4b118ad095da2591c49bfb1add 100644 --- a/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php +++ b/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php @@ -39,7 +39,7 @@ class FieldUiLocalTask extends DeriverBase implements ContainerDeriverInterface protected $entityDisplayRepository; /** - * Creates an FieldUiLocalTask object. + * Creates a FieldUiLocalTask object. * * @param \Drupal\Core\Routing\RouteProviderInterface $route_provider * The route provider. diff --git a/core/modules/file/src/FileAccessControlHandler.php b/core/modules/file/src/FileAccessControlHandler.php index 7c1aed94557bceb7f3c0be3381eb76f6d99f0525..e5c444dc3e9f798957ab80300302bd3c5477ca4f 100644 --- a/core/modules/file/src/FileAccessControlHandler.php +++ b/core/modules/file/src/FileAccessControlHandler.php @@ -125,7 +125,7 @@ protected function checkCreateAccess(AccountInterface $account, array $context, // The file entity has no "create" permission because by default Drupal core // does not allow creating file entities independently. It allows you to // create file entities that are referenced from another entity - // (e.g. an image for a article). A contributed module is free to alter + // (e.g. an image for an article). A contributed module is free to alter // this to allow file entities to be created directly. return AccessResult::neutral(); } diff --git a/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php b/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php index a1dee5cceef53bc125e27468e65241549f93f83a..2ae265d1e81a4a06f9bf75c37f2d04c8f21dab53 100644 --- a/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php +++ b/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php @@ -64,7 +64,7 @@ public function add(FileInterface $file, $module, $type, $id, $count = 1) { * {@inheritdoc} */ public function delete(FileInterface $file, $module, $type = NULL, $id = NULL, $count = 1) { - // Delete rows that have a exact or less value to prevent empty rows. + // Delete rows that have an exact or less value to prevent empty rows. $query = $this->connection->delete($this->tableName) ->condition('module', $module) ->condition('fid', $file->id()); diff --git a/core/modules/file/tests/src/Functional/FileFieldTestBase.php b/core/modules/file/tests/src/Functional/FileFieldTestBase.php index 4d4eb5e6668f42699c1a6f8256c3a4b3da9afb1d..dbb7a4e4b0c80551cc53c3a0ac98340c1fcdcbf9 100644 --- a/core/modules/file/tests/src/Functional/FileFieldTestBase.php +++ b/core/modules/file/tests/src/Functional/FileFieldTestBase.php @@ -26,7 +26,7 @@ abstract class FileFieldTestBase extends BrowserTestBase { protected static $modules = ['node', 'file', 'file_module_test', 'field_ui']; /** - * An user with administration permissions. + * A user with administration permissions. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php b/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php index 4cfba900ae676eea1dbb083c28b0b3bc490ce749..3486c626ada096596d1678021050dcbf1c7ec730 100644 --- a/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php +++ b/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php @@ -407,7 +407,7 @@ public function testWidgetElement() { $elements = $this->xpath($xpath); - // If the field has at least a item, the table should be visible. + // If the field has at least one item, the table should be visible. $this->assertCount(1, $elements); // Test for AJAX error when using progress bar on file field widget. diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index f43e374f5d0a0ede92904d05f3e8f757a6d102c5..cd8a5c5bde98f05eaa3e990d25dba974ba48eb06 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -262,11 +262,11 @@ function filter_fallback_format() { * preview of content in a disallowed format. * * Note: this function should only be used when filtering text for use elsewhere - * than on a rendered HTML page. If this is part of a HTML page, then a + * than on a rendered HTML page. If this is part of an HTML page, then a * renderable array with a #type 'processed_text' element should be used instead * of this, because that will allow cacheability metadata to be set and bubbled * up and attachments to be associated (assets, placeholders, etc.). In other - * words: if you are presenting the filtered text in a HTML page, the only way + * words: if you are presenting the filtered text in an HTML page, the only way * this will be presented correctly, is by using the 'processed_text' element. * * @param string $text diff --git a/core/modules/filter/src/Annotation/Filter.php b/core/modules/filter/src/Annotation/Filter.php index 4d90c584263df8e63e5652475238070a194cc39c..c65f9058e697fa4900863169fef97b5d6156ed49 100644 --- a/core/modules/filter/src/Annotation/Filter.php +++ b/core/modules/filter/src/Annotation/Filter.php @@ -5,7 +5,7 @@ use Drupal\Component\Annotation\Plugin; /** - * Defines an filter annotation object. + * Defines a filter annotation object. * * Plugin Namespace: Plugin\Filter * diff --git a/core/modules/filter/tests/src/Functional/FilterAdminTest.php b/core/modules/filter/tests/src/Functional/FilterAdminTest.php index 361fb051b8e631b92dbf8151bba152ec525f9acc..249506935057e5210f193833e14ccea366212ae8 100644 --- a/core/modules/filter/tests/src/Functional/FilterAdminTest.php +++ b/core/modules/filter/tests/src/Functional/FilterAdminTest.php @@ -34,14 +34,14 @@ class FilterAdminTest extends BrowserTestBase { protected $defaultTheme = 'classy'; /** - * An user with administration permissions. + * A user with administration permissions. * * @var \Drupal\user\UserInterface */ protected $adminUser; /** - * An user with permissions to create pages. + * A user with permissions to create pages. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/filter/tests/src/Functional/FilterFormTest.php b/core/modules/filter/tests/src/Functional/FilterFormTest.php index 131c4fdcfc8b10bc5064bdf4fb2c20ba4328965e..a06f5e7a42efd297753fca5ac1000be114d773e2 100644 --- a/core/modules/filter/tests/src/Functional/FilterFormTest.php +++ b/core/modules/filter/tests/src/Functional/FilterFormTest.php @@ -33,7 +33,7 @@ class FilterFormTest extends BrowserTestBase { protected $adminUser; /** - * An basic user account that can only access basic HTML text format. + * A basic user account that can only access basic HTML text format. * * @var \Drupal\user\Entity\User */ diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php index 0aedecc3fdde81fe5e27d159b920cd8c69d06b71..8ab45cfada09f57c004616b2d8d0d53af109261e 100644 --- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php +++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php @@ -562,7 +562,7 @@ public function testUrlFilter() { // - absolute, mail, partial // - characters/encoding, surrounding markup, security - // Create a email that is too long. + // Create an email that is too long. $long_email = str_repeat('a', 254) . '@example.com'; $too_long_email = str_repeat('b', 255) . '@example.com'; $email_with_plus_sign = 'one+two@example.com'; @@ -862,7 +862,7 @@ public function testUrlFilter() { * Asserts multiple filter output expectations for multiple input strings. * * @param FilterInterface $filter - * A input filter object. + * An input filter object. * @param array $tests * An associative array, whereas each key is an arbitrary input string and * each value is again an associative array whose keys are filter output diff --git a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php index f7c5552f019287c6b3fcb841cc938751054236c1..f1a7f0a21546545372d2f2d1dd7f3f65fa64b59c 100644 --- a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php +++ b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php @@ -41,7 +41,7 @@ class ContentEntityNormalizer extends NormalizerBase { protected $moduleHandler; /** - * Constructs an ContentEntityNormalizer object. + * Constructs a ContentEntityNormalizer object. * * @param \Drupal\hal\LinkManager\LinkManagerInterface $link_manager * The hypermedia link manager. diff --git a/core/modules/help/tests/src/Functional/HelpTest.php b/core/modules/help/tests/src/Functional/HelpTest.php index 3cc9beeaf48c3713633f49104d4fd94ab274572d..46967c37f20e2ba33b675b757b7f9aedb798cdfe 100644 --- a/core/modules/help/tests/src/Functional/HelpTest.php +++ b/core/modules/help/tests/src/Functional/HelpTest.php @@ -89,8 +89,8 @@ public function testHelp() { $this->assertSession()->linkExists($name, 0, new FormattableMarkup('Link properly added to @name (admin/help/@module)', ['@module' => $module, '@name' => $name])); } - // Ensure that module which does not provide an module overview page is - // handled correctly. + // Ensure a module which does not provide a module overview page is handled + // correctly. $this->clickLink(\Drupal::moduleHandler()->getName('help_test')); $this->assertRaw(t('No help is available for module %module.', ['%module' => \Drupal::moduleHandler()->getName('help_test')])); diff --git a/core/modules/image/src/Controller/ImageStyleDownloadController.php b/core/modules/image/src/Controller/ImageStyleDownloadController.php index 742886ae4ab23e172e44a63c41cc5e2fe8cf4cfd..79e0bcbf92dde1693bd34a3ec833f3359fb642e1 100644 --- a/core/modules/image/src/Controller/ImageStyleDownloadController.php +++ b/core/modules/image/src/Controller/ImageStyleDownloadController.php @@ -52,7 +52,7 @@ class ImageStyleDownloadController extends FileDownloadController { protected $fileSystem; /** - * Constructs a ImageStyleDownloadController object. + * Constructs an ImageStyleDownloadController object. * * @param \Drupal\Core\Lock\LockBackendInterface $lock * The lock backend. diff --git a/core/modules/image/src/ImageStyleStorageInterface.php b/core/modules/image/src/ImageStyleStorageInterface.php index 2678f487fd557463133543956db6271ddca38665..7a5223d4b006e532060e37a6cafb0e5fd3bbd7f5 100644 --- a/core/modules/image/src/ImageStyleStorageInterface.php +++ b/core/modules/image/src/ImageStyleStorageInterface.php @@ -11,7 +11,7 @@ interface ImageStyleStorageInterface { * Stores a replacement ID for an image style being deleted. * * The method stores a replacement style to be used by the configuration - * dependency system when a image style is deleted. The replacement style is + * dependency system when an image style is deleted. The replacement style is * replacing the deleted style in other configuration entities that are * depending on the image style being deleted. * diff --git a/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php b/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php index 8f80ef6f46de379f69076d992ffb92d7f880e8a0..26bff11e4d6318d39e0029d9227e5f6b9ff8dda9 100644 --- a/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php +++ b/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php @@ -468,7 +468,7 @@ protected function defaultImageForm(array &$element, array $settings) { * Validates the managed_file element for the default Image form. * * This function ensures the fid is a scalar value and not an array. It is - * assigned as a #element_validate callback in + * assigned as an #element_validate callback in * \Drupal\image\Plugin\Field\FieldType\ImageItem::defaultImageForm(). * * @param array $element diff --git a/core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php b/core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php index 05aab0b05d7acfc3b8ad6f3b454e76db951e25b7..2a1805c6747928e867ad389ab67c763a4c3a566b 100644 --- a/core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php +++ b/core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php @@ -186,7 +186,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen } /** - * Form API callback: Processes a image_image field element. + * Form API callback: Processes an image_image field element. * * Expands the image_image type to include the alt and title fields. * diff --git a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php index f7754197a70f95ec7edebe5a773316badf54362a..3bd5fe5d8769a27e76521cba8948232b1e1169cb 100644 --- a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php +++ b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php @@ -39,7 +39,7 @@ abstract class ImageFieldTestBase extends BrowserTestBase { ]; /** - * An user with permissions to administer content types and image styles. + * A user with permissions to administer content types and image styles. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php b/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php index 6667c9e5cff476a085f75500e0e8a3feb42ed238..b687a430eca224a367cc2d92a15a8862ac8a2d93 100644 --- a/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php +++ b/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php @@ -48,7 +48,7 @@ protected function setUp(): void { // https://www.drupal.org/node/1239558. $this->drupalCreateContentType(['type' => 'basicpage', 'name' => 'Basic page', 'new_revision' => FALSE]); - // Create a image field on the "Basic page" node type. + // Create an image field on the "Basic page" node type. $this->fieldName = strtolower($this->randomMachineName()); $this->createImageField($this->fieldName, 'basicpage', [], ['title_field' => 1]); diff --git a/core/modules/image/tests/src/Functional/QuickEditImageControllerTest.php b/core/modules/image/tests/src/Functional/QuickEditImageControllerTest.php index bae4dbb9ba572e474ab5df6a06383d6e7335b809..66e386eae2590e794411ef3652a553d573634618 100644 --- a/core/modules/image/tests/src/Functional/QuickEditImageControllerTest.php +++ b/core/modules/image/tests/src/Functional/QuickEditImageControllerTest.php @@ -139,7 +139,7 @@ public function testValidImageUpload() { } /** - * Tests that uploading a invalid image does not work. + * Tests that uploading an invalid image does not work. */ public function testInvalidUpload() { // Create a test Node. diff --git a/core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php b/core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php index efe566a19a33b3010f68c991ee016362234a4d0f..faf352ed1675f8f59d65d2a1ad5fc758ce3b9ba5 100644 --- a/core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php +++ b/core/modules/image/tests/src/FunctionalJavascript/ImageFieldTestBase.php @@ -29,7 +29,7 @@ abstract class ImageFieldTestBase extends WebDriverTestBase { ]; /** - * An user with permissions to administer content types and image styles. + * A user with permissions to administer content types and image styles. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/jsonapi/src/Controller/EntityResource.php b/core/modules/jsonapi/src/Controller/EntityResource.php index c7438feb9c72d3dc7d70b8d3c9dad212208d5687..52a9799bd338ec57ea38809478a6cbb979dafea6 100644 --- a/core/modules/jsonapi/src/Controller/EntityResource.php +++ b/core/modules/jsonapi/src/Controller/EntityResource.php @@ -152,7 +152,7 @@ class EntityResource { protected $user; /** - * Instantiates a EntityResource object. + * Instantiates an EntityResource object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. @@ -1263,7 +1263,7 @@ protected static function getRequestLink(Request $request, $query = NULL) { * An associative array with extra data to build the links. * * @return \Drupal\jsonapi\JsonApiResource\LinkCollection - * An LinkCollection, with: + * A LinkCollection, with: * - a 'next' key if it is not the last page; * - 'prev' and 'first' keys if it's not the first page. */ diff --git a/core/modules/jsonapi/src/IncludeResolver.php b/core/modules/jsonapi/src/IncludeResolver.php index ad0e36ca40562a1d823a29e8bd607d6002a50560..e68c9b218ebf41ee8eefb5aea40ce64624a476f7 100644 --- a/core/modules/jsonapi/src/IncludeResolver.php +++ b/core/modules/jsonapi/src/IncludeResolver.php @@ -166,7 +166,7 @@ protected function resolveIncludeTree(array $include_tree, Data $data, Data $inc * The raw include parameter value. * * @return array - * An multi-dimensional array representing a tree of field names to be + * A multi-dimensional array representing a tree of field names to be * included. Array keys are the field names. Leaves are empty arrays. */ protected static function toIncludeTree(ResourceObjectData $data, $include_parameter) { @@ -238,7 +238,7 @@ protected static function resolveInternalIncludePaths(ResourceType $base_resourc * An array of exploded include paths. * * @return array - * An multi-dimensional array representing a tree of field names to be + * A multi-dimensional array representing a tree of field names to be * included. Array keys are the field names. Leaves are empty arrays. */ protected static function buildTree(array $paths) { diff --git a/core/modules/language/src/Plugin/Block/LanguageBlock.php b/core/modules/language/src/Plugin/Block/LanguageBlock.php index be8571b975f3b7843cc6a2bbb351cc8704c9eb14..2765971b8e6d478fdf071d2c50560538e4f1d6fa 100644 --- a/core/modules/language/src/Plugin/Block/LanguageBlock.php +++ b/core/modules/language/src/Plugin/Block/LanguageBlock.php @@ -38,7 +38,7 @@ class LanguageBlock extends BlockBase implements ContainerFactoryPluginInterface protected $pathMatcher; /** - * Constructs an LanguageBlock object. + * Constructs a LanguageBlock object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php index 87e12c7d4b9edaf128a1a08f619e9631d317bac3..0ddd7355d0c91eb596be61792a402b259c20e36c 100644 --- a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php +++ b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php @@ -201,7 +201,7 @@ protected function hasLowerLanguageNegotiationWeight() { /** * Determines if content entity route condition is met. * - * Requirements: currently being on an content entity route and processing + * Requirements: currently being on a content entity route and processing * outbound url pointing to the same content entity. * * @param \Symfony\Component\Routing\Route $outbound_route diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php index 2ff5950c92f606ee8fbe691378597d4f480394be..5a64197be4b45571e053e27dc963445a0abde68c 100644 --- a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php +++ b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php @@ -146,7 +146,7 @@ public function testDefaultLangcode() { // Check the default value of a language field when authors preferred option // is selected. - // Create first an user and assign a preferred langcode. + // First create a user, then assign a langcode. $some_user = $this->drupalCreateUser(); $some_user->preferred_langcode = 'bb'; $some_user->save(); diff --git a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php index 399425379c7b12e8e39acd36d19482d8e727675c..0a72a3ddf0bf079a55e262dc5f26ad483f5de3da 100644 --- a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php +++ b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php @@ -29,7 +29,7 @@ class LanguageUrlRewritingTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * An user with permissions to administer languages. + * A user with permissions to administer languages. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php index 699dcee4c5750d1c9a77fdc101ee8d8facc94358..c7bfa77a136fb41992cb960663adaf484d44cc99 100644 --- a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php +++ b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php @@ -77,7 +77,7 @@ public function testEntityUrlLanguageWithLanguageContentEnabled() { ]); $config->save(); - // Without being on an content entity route the default entity URL tests + // Without being on a content entity route the default entity URL tests // should still pass. $this->testEntityUrlLanguage(); diff --git a/core/modules/layout_builder/src/Field/LayoutSectionItemList.php b/core/modules/layout_builder/src/Field/LayoutSectionItemList.php index 3243be97a6b654c3e9801d0d72b15dc292ef210f..28b17399abdc06a134bef814be17159e9f966638 100644 --- a/core/modules/layout_builder/src/Field/LayoutSectionItemList.php +++ b/core/modules/layout_builder/src/Field/LayoutSectionItemList.php @@ -11,7 +11,7 @@ use Drupal\layout_builder\SectionStorage\SectionStorageTrait; /** - * Defines a item list class for layout section fields. + * Defines an item list class for layout section fields. * * @internal * Plugin classes are internal. diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index 593e7812a376a89faa7233f8087a0cf928fe9c48..b4dbdd8c36cfcd4fa4a9cf94939d7c6827cb26c5 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -104,7 +104,7 @@ protected static function getUriAsDisplayableString($uri) { * @see static::getUriAsDisplayableString() */ protected static function getUserEnteredStringAsUri($string) { - // By default, assume the entered string is an URI. + // By default, assume the entered string is a URI. $uri = trim($string); // Detect entity autocomplete string, map to 'entity:' URI. @@ -142,7 +142,7 @@ public static function validateUriElement($element, FormStateInterface $form_sta $uri = static::getUserEnteredStringAsUri($element['#value']); $form_state->setValueForElement($element, $uri); - // If getUserEnteredStringAsUri() mapped the entered value to a 'internal:' + // If getUserEnteredStringAsUri() mapped the entered value to an 'internal:' // URI , ensure the raw value begins with '/', '?' or '#'. // @todo '' is valid input for BC reasons, may be removed by // https://www.drupal.org/node/2421941 diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index d68746ae104f82d068226dbd3f4e791d4449124c..f18e8b8247d0e97382f96c3c62b08d575af0ffb8 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -996,7 +996,7 @@ function locale_translation_use_remote_source() { * not have any false positives. But it is only a test, not a transformation, * as it destroys valid HTML. We cannot reliably filter translation strings * on import because some strings are irreversibly corrupted. For example, - * a & in the translation would get encoded to &amp; by + * an & in the translation would get encoded to &amp; by * \Drupal\Component\Utility\Xss::filter() before being put in the database, * and thus would be displayed incorrectly. * diff --git a/core/modules/locale/src/Form/TranslationStatusForm.php b/core/modules/locale/src/Form/TranslationStatusForm.php index a6d914afe9d192e10725a0c7f46845a5f8c6be29..4ac817c784dca2ed0e078c2e8f287cafd0bc4fbc 100644 --- a/core/modules/locale/src/Form/TranslationStatusForm.php +++ b/core/modules/locale/src/Form/TranslationStatusForm.php @@ -277,8 +277,8 @@ public function submitForm(array &$form, FormStateInterface $form_state) { $options = _locale_translation_default_update_options(); // If the status was updated recently we can immediately start fetching the - // translation updates. If the status is expired we clear it an run a batch to - // update the status and then fetch the translation updates. + // translation updates. If the status is expired we clear it and run a batch + // to update the status and then fetch the translation updates. $last_checked = $this->state->get('locale.translation_last_checked'); if ($last_checked < REQUEST_TIME - LOCALE_TRANSLATION_STATUS_TTL) { locale_translation_clear_status(); diff --git a/core/modules/locale/src/Gettext.php b/core/modules/locale/src/Gettext.php index 44677aa28b64443393590c5f9f2b25e627d2ca18..b30eb4a7e6cef56ede6f0b79f6cc5045e515117e 100644 --- a/core/modules/locale/src/Gettext.php +++ b/core/modules/locale/src/Gettext.php @@ -18,7 +18,7 @@ class Gettext { * Reads the given PO files into the database. * * @param object $file - * File object with an URI property pointing at the file's path. + * File object with a URI property pointing at the file's path. * - "langcode": The language the strings will be added to. * - "uri": File URI. * @param array $options diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php index de6ea989ab342aeb500d098a5a41a243f87ef36c..7bab05decc793d84bdcab337750316e683c5e874 100644 --- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php @@ -447,7 +447,7 @@ public function getPoFile() { } /** - * Helper function that returns a empty .po file. + * Helper function that returns an empty .po file. */ public function getEmptyPoFile() { return ''; diff --git a/core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php b/core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php index dbceaf8a11208918d29111a544a3198f9b7444e9..238545678ac72dee698a150a30f5f177e1b16f0b 100644 --- a/core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php +++ b/core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php @@ -35,7 +35,7 @@ class MediaThumbnailFormatter extends ImageFormatter { protected $renderer; /** - * Constructs an MediaThumbnailFormatter object. + * Constructs a MediaThumbnailFormatter object. * * @param string $plugin_id * The plugin_id for the formatter. diff --git a/core/modules/media/tests/src/Functional/MediaAccessTest.php b/core/modules/media/tests/src/Functional/MediaAccessTest.php index ae604fcfb5f724c6602fd9dcef9c74216c13b981..be40eccfd1a29391d13548a2906d0bba57f91774 100644 --- a/core/modules/media/tests/src/Functional/MediaAccessTest.php +++ b/core/modules/media/tests/src/Functional/MediaAccessTest.php @@ -328,7 +328,7 @@ public function testReferencedRendering() { $this->container->get('router.builder')->rebuild(); - // Create a media type and a entity reference to itself. + // Create a media type and an entity reference to itself. $media_type = $this->createMediaType('test'); FieldStorageConfig::create([ diff --git a/core/modules/media/tests/src/Functional/MediaRevisionTest.php b/core/modules/media/tests/src/Functional/MediaRevisionTest.php index 6ec57bea2cb9f7464ee41c073d8b95abea19ed39..184a1b284c4c414f7276ebd3dc65cbab25a388ef 100644 --- a/core/modules/media/tests/src/Functional/MediaRevisionTest.php +++ b/core/modules/media/tests/src/Functional/MediaRevisionTest.php @@ -119,7 +119,7 @@ public function testFileMediaRevision() { } /** - * Tests creating revisions of a Image media item. + * Tests creating revisions of an Image media item. */ public function testImageMediaRevision() { $assert = $this->assertSession(); diff --git a/core/modules/media_library/src/Form/AddFormBase.php b/core/modules/media_library/src/Form/AddFormBase.php index ac765fb862b6439858bbe8d8f83b04a951a29cff..317f0842a1a9817ba02abd7790380b5558d8169a 100644 --- a/core/modules/media_library/src/Form/AddFormBase.php +++ b/core/modules/media_library/src/Form/AddFormBase.php @@ -63,7 +63,7 @@ abstract class AddFormBase extends FormBase implements BaseFormIdInterface, Trus protected $openerResolver; /** - * Constructs a AddFormBase object. + * Constructs an AddFormBase object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. @@ -738,7 +738,7 @@ protected function buildMediaLibraryUi(FormStateInterface $form_state) { * The current form state. * * @return array|\Drupal\Core\Ajax\AjaxResponse - * The form array when there are form errors or a AJAX response to select + * The form array when there are form errors or an AJAX response to select * the created items in the media library. */ public function updateWidget(array &$form, FormStateInterface $form_state) { diff --git a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php index 90ff62eaea1b81367a7163d00a042d191945315d..1132883cd6e650fcf7f1deeb817dc80e6ce97a86 100644 --- a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php +++ b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php @@ -217,7 +217,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) { /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); - // The menu link can just be updated if there is already an menu link entry + // The menu link can just be updated if there is already a menu link entry // on both entity and menu link plugin level. $definition = $this->getPluginDefinition(); // Even when $update is FALSE, for top level links it is possible the link diff --git a/core/modules/menu_ui/src/Form/MenuDeleteForm.php b/core/modules/menu_ui/src/Form/MenuDeleteForm.php index 57848dfcbd349211e452fe52b019eba3bdd6e4bc..c876fd93f10281d1c57cf3f2fc894c2dbca6c10b 100644 --- a/core/modules/menu_ui/src/Form/MenuDeleteForm.php +++ b/core/modules/menu_ui/src/Form/MenuDeleteForm.php @@ -83,7 +83,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { // Delete all links to the overview page for this menu. // @todo Add a more generic helper function to the menu link plugin - // manager to remove links to a entity or other ID used as a route + // manager to remove links to an entity or other ID used as a route // parameter that is being removed. Also, consider moving this to // menu_ui.module as part of a generic response to entity deletion. // https://www.drupal.org/node/2310329 diff --git a/core/modules/migrate/src/Event/MigrateRollbackEvent.php b/core/modules/migrate/src/Event/MigrateRollbackEvent.php index 078b19997fcd9a5bc7d2837064162e4e7dfcb984..b04fab42677f0c03f1535bf63faf97730ee13d16 100644 --- a/core/modules/migrate/src/Event/MigrateRollbackEvent.php +++ b/core/modules/migrate/src/Event/MigrateRollbackEvent.php @@ -18,7 +18,7 @@ class MigrateRollbackEvent extends Event { protected $migration; /** - * Constructs an rollback event object. + * Constructs a rollback event object. * * @param \Drupal\migrate\Plugin\MigrationInterface $migration * Migration entity. diff --git a/core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php b/core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php index 2f657119e715c50405d9ca15b1e769fa9263dacb..6f5df50959ca71168215fd7e9987eaaec9026252 100644 --- a/core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php +++ b/core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php @@ -32,7 +32,7 @@ class ProviderFilterDecorator implements DiscoveryInterface { protected $providerExists; /** - * Constructs a InheritProviderDecorator object. + * Constructs an InheritProviderDecorator object. * * @param \Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated * The object implementing DiscoveryInterface that is being decorated. diff --git a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php index 2692a633f05397ee5eecfefaee4c1aa12a8eb450..37436b892ef3ff4f1e4b5bf012089f70aee04c72 100644 --- a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php +++ b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php @@ -198,7 +198,7 @@ public static function create(ContainerInterface $container, array $configuratio * The source identifiers * * @return string - * An hash containing the hashed values of the source identifiers. + * A hash containing the hashed values of the source identifiers. */ public function getSourceIdsHash(array $source_id_values) { // When looking up the destination ID we require an array with both the diff --git a/core/modules/node/src/Access/NodeAddAccessCheck.php b/core/modules/node/src/Access/NodeAddAccessCheck.php index e915cb114f82f5523963b5c5d769db4f881c1871..5a61b05d9494d8d414c9d9d712b4b68c048d6015 100644 --- a/core/modules/node/src/Access/NodeAddAccessCheck.php +++ b/core/modules/node/src/Access/NodeAddAccessCheck.php @@ -23,7 +23,7 @@ class NodeAddAccessCheck implements AccessInterface { protected $entityTypeManager; /** - * Constructs a EntityCreateAccessCheck object. + * Constructs an EntityCreateAccessCheck object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. diff --git a/core/modules/node/src/Access/NodePreviewAccessCheck.php b/core/modules/node/src/Access/NodePreviewAccessCheck.php index 54c3e815e953b9be1d5753c886e61c0c955aff0a..847ef61bb5aec2c181c3e04fb3dfacd7f1eedb84 100644 --- a/core/modules/node/src/Access/NodePreviewAccessCheck.php +++ b/core/modules/node/src/Access/NodePreviewAccessCheck.php @@ -22,7 +22,7 @@ class NodePreviewAccessCheck implements AccessInterface { protected $entityTypeManager; /** - * Constructs a EntityCreateAccessCheck object. + * Constructs an EntityCreateAccessCheck object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager service. diff --git a/core/modules/node/src/Controller/NodePreviewController.php b/core/modules/node/src/Controller/NodePreviewController.php index 886a1a48d5515ea5ae39fe3f271f64cf931c901a..f47a2249302472939ea647ee379a8604b6842aa4 100644 --- a/core/modules/node/src/Controller/NodePreviewController.php +++ b/core/modules/node/src/Controller/NodePreviewController.php @@ -22,7 +22,7 @@ class NodePreviewController extends EntityViewController { protected $entityRepository; /** - * Creates an NodeViewController object. + * Creates a NodeViewController object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. diff --git a/core/modules/node/src/Controller/NodeViewController.php b/core/modules/node/src/Controller/NodeViewController.php index 167483cef90e0e61635158308bd39d46061178d3..a0787d4abccce3c16a581bffa579119cd271c976 100644 --- a/core/modules/node/src/Controller/NodeViewController.php +++ b/core/modules/node/src/Controller/NodeViewController.php @@ -30,7 +30,7 @@ class NodeViewController extends EntityViewController { protected $entityRepository; /** - * Creates an NodeViewController object. + * Creates a NodeViewController object. * * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. diff --git a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php index 4ba76663749ef0c17977878017ec8c58dbeb98cd..018d6f19324b57a96c99155d6e651ff34dd597d0 100644 --- a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php +++ b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php @@ -26,7 +26,7 @@ class NodeFormSaveChangedTimeTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * An user with permissions to create and edit articles. + * A user with permissions to create and edit articles. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php index 0c0327167b0492f97754e24491e66543a6177d9c..2a71d6446f3b73705561819c08bae555d2a87f1c 100644 --- a/core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php +++ b/core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php @@ -214,7 +214,7 @@ public function testNodeAccessLanguageAwareCombination() { $this->assertNodeAccess($expected_node_access, $this->nodes['private_both_public']->getTranslation('hu'), $this->webUser); $this->assertNodeAccess($expected_node_access, $this->nodes['private_both_public']->getTranslation('ca'), $this->webUser); - // If the node is marked private, but a existing translation is public, + // If the node is marked private, but an existing translation is public, // access should only be granted for the public translation. With the // Hungarian translation marked as private, but the Catalan translation // public, the access is granted. diff --git a/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php b/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php index 0cee9b34a279480a8e39122889722561e560d56a..274baa2b14f412befc038445871b516001f87c37 100644 --- a/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php +++ b/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php @@ -68,7 +68,7 @@ public function testNidArgument() { $view->preview(); $this->assertCount(2, $view->result, 'Found the expected number of results.'); - // Set an the second node id as an argument. + // Set the second node id as an argument. $view->destroy(); $view->preview('default', [$node2->id()]); // Verify that the title is overridden. diff --git a/core/modules/path/tests/src/Functional/PathLanguageTest.php b/core/modules/path/tests/src/Functional/PathLanguageTest.php index 0ca320166d5bffb037346d3411cd62eb24a3e8f7..677557ae3ca0e8a5fcfddcaf84afff2918030df0 100644 --- a/core/modules/path/tests/src/Functional/PathLanguageTest.php +++ b/core/modules/path/tests/src/Functional/PathLanguageTest.php @@ -27,7 +27,7 @@ class PathLanguageTest extends PathTestBase { protected $defaultTheme = 'stark'; /** - * An user with permissions to administer content types. + * A user with permissions to administer content types. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php b/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php index d529a0bb4fd872f5a9e776a8218a89c7202af2bc..a100d5151eeeb3ddeb93388d05004e3a51a0ee45 100644 --- a/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php +++ b/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php @@ -107,7 +107,7 @@ protected function assertUrlOutboundAlter($original, $final) { } /** - * Assert that a inbound path is altered to an expected value. + * Assert that an inbound path is altered to an expected value. * * @param $original * The original path before it has been altered by inbound URL processing. diff --git a/core/modules/quickedit/js/models/EntityModel.es6.js b/core/modules/quickedit/js/models/EntityModel.es6.js index 84a68818b074cdf8189efd6b1376b365a458e369..433e1d5216c4c7747371227a025c660cfaf994a6 100644 --- a/core/modules/quickedit/js/models/EntityModel.es6.js +++ b/core/modules/quickedit/js/models/EntityModel.es6.js @@ -68,7 +68,7 @@ fields: null, // The attributes below are stateful. The ones above will never change - // during the life of a EntityModel instance. + // during the life of an EntityModel instance. /** * Indicates whether this entity is currently being edited in-place. diff --git a/core/modules/quickedit/js/views/EntityToolbarView.es6.js b/core/modules/quickedit/js/views/EntityToolbarView.es6.js index ac56729cbc6a8734d93d1a8a3f0fa9dd576423d1..d9bf8746dd1671ea027dd47280e61d6556425d9d 100644 --- a/core/modules/quickedit/js/views/EntityToolbarView.es6.js +++ b/core/modules/quickedit/js/views/EntityToolbarView.es6.js @@ -100,8 +100,8 @@ if ($body.children('#quickedit-entity-toolbar').length === 0) { $body.append(this.$el); } - // The fence will define a area on the screen that the entity toolbar - // will be position within. + // The fence will define an area on the screen that the entity toolbar + // will be positioned within. if ($body.children('#quickedit-toolbar-fence').length === 0) { this.$fence = $(Drupal.theme('quickeditEntityToolbarFence')) .css(Drupal.displace()) diff --git a/core/modules/quickedit/src/Ajax/EntitySavedCommand.php b/core/modules/quickedit/src/Ajax/EntitySavedCommand.php index 1dcd6d0884072a4bec52976a053c988d6dd66f9c..a0366515e920ebd62a786ee28570aed3ab26fa47 100644 --- a/core/modules/quickedit/src/Ajax/EntitySavedCommand.php +++ b/core/modules/quickedit/src/Ajax/EntitySavedCommand.php @@ -11,7 +11,7 @@ class EntitySavedCommand extends BaseCommand { /** - * Constructs a EntitySaveCommand object. + * Constructs an EntitySaveCommand object. * * @param string $data * The data to pass on to the client side. diff --git a/core/modules/quickedit/src/Plugin/InPlaceEditorManager.php b/core/modules/quickedit/src/Plugin/InPlaceEditorManager.php index 4dcb7547dc8b3313bb9e3603a0ab8dfc9f57ea43..a65fe13ecb04f86852030e7bc3fedca43629a39d 100644 --- a/core/modules/quickedit/src/Plugin/InPlaceEditorManager.php +++ b/core/modules/quickedit/src/Plugin/InPlaceEditorManager.php @@ -19,7 +19,7 @@ class InPlaceEditorManager extends DefaultPluginManager { /** - * Constructs a InPlaceEditorManager object. + * Constructs an InPlaceEditorManager object. * * @param \Traversable $namespaces * An object that implements \Traversable which contains the root paths diff --git a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditAutocompleteTermTest.php b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditAutocompleteTermTest.php index 7b6d0dcada4de55e1a44d26675220a6506e62800..241d9376db4cb548ffdee22d4be81c212b41d54f 100644 --- a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditAutocompleteTermTest.php +++ b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditAutocompleteTermTest.php @@ -72,7 +72,7 @@ class QuickEditAutocompleteTermTest extends WebDriverTestBase { protected $fieldName; /** - * An user with permissions to access in-place editor. + * A user with permissions to access in-place editor. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php index 25df4a33151d74cf9ffb6fa7b10586140838434f..cd0470f3b98053748478708c6ed7f1410ee45d31 100644 --- a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php +++ b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php @@ -47,7 +47,7 @@ class QuickEditLoadingTest extends WebDriverTestBase { protected $defaultTheme = 'classy'; /** - * An user with permissions to create and edit articles. + * A user with permissions to create and edit articles. * * @var \Drupal\user\UserInterface */ @@ -61,7 +61,7 @@ class QuickEditLoadingTest extends WebDriverTestBase { protected $testNode; /** - * A author user with permissions to access in-place editor. + * An author user with permissions to access in-place editor. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/responsive_image/src/ResponsiveImageStyleInterface.php b/core/modules/responsive_image/src/ResponsiveImageStyleInterface.php index 226797188aef8c99e6aa6b55c326672379fb94b1..a858f56861c72330fe106465c2af19c4ae891d9d 100644 --- a/core/modules/responsive_image/src/ResponsiveImageStyleInterface.php +++ b/core/modules/responsive_image/src/ResponsiveImageStyleInterface.php @@ -129,7 +129,7 @@ public function getImageStyleMapping($breakpoint_id, $multiplier); public static function isEmptyImageStyleMapping(array $image_style_mapping); /** - * Adds a image style mapping to the responsive image configuration entity. + * Adds an image style mapping to the responsive image configuration entity. * * @param string $breakpoint_id * The breakpoint ID. diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php index 4d349f1638295c7bf9cba46e35ffaab6872439a9..43750fb758709ccd9eeed65861ed18e45059f6b8 100644 --- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php +++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php @@ -586,7 +586,7 @@ public function testFieldRawOutput() { * Tests the live preview output for json output. */ public function testLivePreview() { - // We set up a request so it looks like an request in the live preview. + // We set up a request so it looks like a request in the live preview. $request = new Request(); $request->query->add([MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']); /** @var \Symfony\Component\HttpFoundation\RequestStack $request_stack */ diff --git a/core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php b/core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php index 14585675d6c9f7fc2ba9d5e43f1977454e10b20d..16106e75302faaaebfde4a98421b1f81ce3ce031 100644 --- a/core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php +++ b/core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php @@ -21,7 +21,7 @@ class MigrateSearchPageTest extends MigrateDrupal7TestBase { protected static $modules = ['search']; /** - * Asserts various aspects of an SearchPage entity. + * Asserts various aspects of a SearchPage entity. * * @param string $id * The expected search page ID. diff --git a/core/modules/serialization/src/EntityResolver/ChainEntityResolverInterface.php b/core/modules/serialization/src/EntityResolver/ChainEntityResolverInterface.php index dc3e211574da5dd688084fa6eff1a59f164389ea..c9191f2087a5878f421fef9137bf7c24d8655542 100644 --- a/core/modules/serialization/src/EntityResolver/ChainEntityResolverInterface.php +++ b/core/modules/serialization/src/EntityResolver/ChainEntityResolverInterface.php @@ -3,7 +3,7 @@ namespace Drupal\serialization\EntityResolver; /** - * An interface for delegating a entity resolution to a chain of resolvers. + * An interface for delegating an entity resolution to a chain of resolvers. */ interface ChainEntityResolverInterface extends EntityResolverInterface { diff --git a/core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizer.php b/core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizer.php index 67b1a433d62f4223d3448cd5850c30e8cc6551cf..0bfed445c9fdfa668f09e7de6aa83da84cf05fa5 100644 --- a/core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizer.php +++ b/core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizer.php @@ -27,7 +27,7 @@ class EntityReferenceFieldItemNormalizer extends FieldItemNormalizer { protected $entityRepository; /** - * Constructs a EntityReferenceFieldItemNormalizer object. + * Constructs an EntityReferenceFieldItemNormalizer object. * * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository * The entity repository. diff --git a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php index c5ade5da8bbef304628d271e844fde455b365bf2..bfbe7c4c299e4f899bc628ef9c1db831e215bbd8 100644 --- a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php +++ b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php @@ -135,7 +135,7 @@ protected function doTestBlocks($theme, $block_plugin, $new_page_text, $element_ $this->enableEditMode(); - // Open block form by clicking a element inside the block. + // Open block form by clicking an element inside the block. // This confirms that default action for links and form elements is // suppressed. $this->openBlockForm("$block_selector {$element_selector}", $block_selector); diff --git a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php index efdb72a6cd8e1bc7a9b0498c5773fe3d51d9cd49..fbd5b1c76dd2679c5519003ce2843156b372aeea 100644 --- a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php +++ b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php @@ -50,7 +50,7 @@ class StatisticsPopularBlock extends BlockBase implements ContainerFactoryPlugin protected $renderer; /** - * Constructs an StatisticsPopularBlock object. + * Constructs a StatisticsPopularBlock object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/statistics/src/StatisticsStorageInterface.php b/core/modules/statistics/src/StatisticsStorageInterface.php index ad6d6d5dceb00059a12f3e1a02da22e0a38cc1b1..9109929ff1449536039d81bc74be9e23c69e4f92 100644 --- a/core/modules/statistics/src/StatisticsStorageInterface.php +++ b/core/modules/statistics/src/StatisticsStorageInterface.php @@ -11,7 +11,7 @@ interface StatisticsStorageInterface { /** - * Count a entity view. + * Counts an entity view. * * @param int $id * The ID of the entity to count. @@ -47,7 +47,7 @@ public function fetchViews($ids); public function fetchView($id); /** - * Returns the number of times a entity has been viewed. + * Returns the number of times an entity has been viewed. * * @param string $order * The counter name to order by: diff --git a/core/modules/system/src/ActionConfigEntityInterface.php b/core/modules/system/src/ActionConfigEntityInterface.php index 32b6eef6ecddffdd4d676ac20de3658ac1f79501..b6a5bbda0c2d1b7bfc58aa4c2c78a39af7c3cb28 100644 --- a/core/modules/system/src/ActionConfigEntityInterface.php +++ b/core/modules/system/src/ActionConfigEntityInterface.php @@ -5,7 +5,7 @@ use Drupal\Core\Config\Entity\ConfigEntityInterface; /** - * Provides an interface defining a action entity. + * Provides an interface defining an action entity. */ interface ActionConfigEntityInterface extends ConfigEntityInterface { diff --git a/core/modules/system/src/Controller/EntityAutocompleteController.php b/core/modules/system/src/Controller/EntityAutocompleteController.php index 5921642a3429c962aa054d8569d27ecd5b84bb75..1bffd291a477ead30835868056469611112b77a0 100644 --- a/core/modules/system/src/Controller/EntityAutocompleteController.php +++ b/core/modules/system/src/Controller/EntityAutocompleteController.php @@ -33,7 +33,7 @@ class EntityAutocompleteController extends ControllerBase { protected $keyValue; /** - * Constructs a EntityAutocompleteController object. + * Constructs an EntityAutocompleteController object. * * @param \Drupal\Core\Entity\EntityAutocompleteMatcherInterface $matcher * The autocomplete matcher for entity references. diff --git a/core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php b/core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php index a6a19d6d5a6caa41b94b9349735a52473148d84a..06a6ba4890e4131886247bd578c87804435ea3ab 100644 --- a/core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php +++ b/core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php @@ -39,7 +39,7 @@ public static function getSubscribedEvents() { } /** - * Determines whether the given route is a HTML route. + * Determines whether the given route is an HTML route. * * @param \Symfony\Component\Routing\Route $route * The route to analyze. diff --git a/core/modules/system/src/Form/DateFormatDeleteForm.php b/core/modules/system/src/Form/DateFormatDeleteForm.php index 155803282500ce5dfaf1ba91fec28e2ba04bf209..382cd44aa9aa44ada17b7bc9a9d966c02ddfc394 100644 --- a/core/modules/system/src/Form/DateFormatDeleteForm.php +++ b/core/modules/system/src/Form/DateFormatDeleteForm.php @@ -21,7 +21,7 @@ class DateFormatDeleteForm extends EntityDeleteForm { protected $dateFormatter; /** - * Constructs an DateFormatDeleteForm object. + * Constructs a DateFormatDeleteForm object. * * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter * The date formatter service. diff --git a/core/modules/system/src/Form/ImageToolkitForm.php b/core/modules/system/src/Form/ImageToolkitForm.php index 8684c773123fb3032a9776c049a1fe1a3fc2938f..f11f695a42afe15f86354176e30d184152273a83 100644 --- a/core/modules/system/src/Form/ImageToolkitForm.php +++ b/core/modules/system/src/Form/ImageToolkitForm.php @@ -23,7 +23,7 @@ class ImageToolkitForm extends ConfigFormBase { protected $availableToolkits = []; /** - * Constructs a ImageToolkitForm object. + * Constructs an ImageToolkitForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. diff --git a/core/modules/system/templates/admin-page.html.twig b/core/modules/system/templates/admin-page.html.twig index a2483f189d2a0bd3c80c6d3e5e7fecc23cc02d2c..0faa5294b8cb78deefb009677dcb9d5d9a812147 100644 --- a/core/modules/system/templates/admin-page.html.twig +++ b/core/modules/system/templates/admin-page.html.twig @@ -5,7 +5,7 @@ * * Available variables: * - system_compact_link: Themed link to toggle compact view. - * - containers: An list of administrative blocks keyed by position: left or + * - containers: A list of administrative blocks keyed by position: left or * right. Contains: * - blocks: A list of blocks within a container. * diff --git a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php index 2a6b83965ec9fae499a3974541c6cc7de332df31..a6aeb389e679d4b2dc50228fc7f5ea921d24f2bf 100644 --- a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php +++ b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php @@ -29,7 +29,7 @@ class EarlyRenderingTestController extends ControllerBase { protected $renderer; /** - * Constructs a EarlyRenderingTestController. + * Constructs an EarlyRenderingTestController. * * @param \Drupal\Core\Render\RendererInterface $renderer */ diff --git a/core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php b/core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php index cea0a49e7a1ba12af716f8d197d9d21fab518961..6514ae517260878f2401e8e0f899298c8341f6eb 100644 --- a/core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php +++ b/core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php @@ -29,7 +29,7 @@ abstract class EntityTestMapFieldResourceTestBase extends EntityResourceTestBase protected $entity; /** - * The complex nested value to assign to a @FieldType=map field. + * The complex nested value to assign to a map field. * * @var array */ diff --git a/core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php b/core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php index 027c24f73fe5feb96669a6b6bb85b6aa775d0ed8..18026c44dd52ae934f65fa662d04affe74d1e60b 100644 --- a/core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php +++ b/core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php @@ -10,7 +10,7 @@ class PathEncodedTestController { /** - * Returns a HTML simple response. + * Returns an HTML simple response. * * @return \Symfony\Component\HttpFoundation\Response */ diff --git a/core/modules/system/tests/src/Functional/Form/ElementTest.php b/core/modules/system/tests/src/Functional/Form/ElementTest.php index 75b6c8a6f7253c1c9c6229b9be70590985424a7c..08195fd66721c76be2cae57d16606002e0918502 100644 --- a/core/modules/system/tests/src/Functional/Form/ElementTest.php +++ b/core/modules/system/tests/src/Functional/Form/ElementTest.php @@ -198,7 +198,7 @@ public function testRequiredFieldsetsAndDetails() { } /** - * Tests a form with a autocomplete setting.. + * Tests a form with an autocomplete setting.. */ public function testFormAutocomplete() { $this->drupalGet('form-test/autocomplete'); diff --git a/core/modules/system/tests/src/Functional/System/HtaccessTest.php b/core/modules/system/tests/src/Functional/System/HtaccessTest.php index 80a680971b40d3cc6af88c90d7bcf5515770ce39..0652713039d80397abe3aaaa408381c2b758e734 100644 --- a/core/modules/system/tests/src/Functional/System/HtaccessTest.php +++ b/core/modules/system/tests/src/Functional/System/HtaccessTest.php @@ -113,7 +113,7 @@ public function testFileAccess() { // Test that it is possible to have path aliases containing .php. $type = $this->drupalCreateContentType(); - // Create an node aliased to test.php. + // Create a node aliased to test.php. $node = $this->drupalCreateNode([ 'title' => 'This is a node', 'type' => $type->id(), diff --git a/core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php b/core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php index d892aaf62a5eb30d03a78deff9119ade2c89571a..2ba491e40a807bf419b25e59eb8dde5ead872737 100644 --- a/core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php +++ b/core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php @@ -53,7 +53,7 @@ protected function setUp(): void { * @dataProvider testAccessProvider */ public function testAccess($which_user, $which_entity, $view_label_access_result, $view_access_result, $update_access_result, $delete_access_result, $create_access_result) { - // We must always create user 1, so that a "normal" user has a ID >1. + // We must always create user 1, so that a "normal" user has an ID >1. $root_user = $this->drupalCreateUser(); if ($which_user === 'user1') { diff --git a/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php b/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php index bd3e967976b618a042718714ff5a1ead7db6d8c4..dd0a802a514ab727ead523567f0a9f3a20ef57a5 100644 --- a/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php +++ b/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php @@ -54,7 +54,7 @@ public function testConfigUpdateImport() { } /** - * Tests updating a action during import. + * Tests updating an action during import. */ protected function doActionUpdate() { // Create a test action with a known label. diff --git a/core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php b/core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php index c27bbc39d90ca25677b712cf8ca6fc7a74d368b0..548c20040266c1ac42a3f6e0cea7cdfd75590204 100644 --- a/core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php +++ b/core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php @@ -53,7 +53,7 @@ protected function setUp(): void { * @dataProvider testAccessProvider */ public function testAccess($which_user, $which_entity, $view_label_access_result, $view_access_result, $update_access_result, $delete_access_result, $create_access_result) { - // We must always create user 1, so that a "normal" user has a ID >1. + // We must always create user 1, so that a "normal" user has an ID >1. $root_user = $this->drupalCreateUser(); if ($which_user === 'user1') { diff --git a/core/modules/taxonomy/taxonomy.es6.js b/core/modules/taxonomy/taxonomy.es6.js index c09efbee8e3b0603d9cd89402038f58d6d912a65..7b9d9298e258edfe472926cd3697a0250d704ee1 100644 --- a/core/modules/taxonomy/taxonomy.es6.js +++ b/core/modules/taxonomy/taxonomy.es6.js @@ -13,7 +13,7 @@ * @type {Drupal~behavior} * * @prop {Drupal~behaviorAttach} attach - * Attaches the drag behavior to a applicable table element. + * Attaches the drag behavior to an applicable table element. */ Drupal.behaviors.termDrag = { attach(context, settings) { diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php index ed0f5d263eac9d3aefff7402882af908cd4653ff..bbb2c517386e3260eaf6bf481f518655f021d89f 100644 --- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php +++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php @@ -29,7 +29,7 @@ class TaxonomyTermViewTest extends TaxonomyTestBase { protected $defaultTheme = 'stark'; /** - * An user with permissions to administer taxonomy. + * A user with permissions to administer taxonomy. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php b/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php index ad946381587b4639ada0501322167f122aa29f25..6ef93f92549ae715ae317e7ef9e6788b3ba4258e 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php @@ -71,7 +71,7 @@ public function testArgumentValidatorTerm() { $view->argument['tid']->argument_validated = NULL; } - // Pass in a invalid term. + // Pass in an invalid term. $this->assertFalse($view->argument['tid']->setArgument(rand(1000, 10000))); $this->assertEmpty($view->argument['tid']->getTitle()); $view->argument['tid']->validated_title = NULL; diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php index dd5ecd3b29fde38712224804cd411b0b32fda672..4aab63aae8505564489df25efd135068fb41820a 100644 --- a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php +++ b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php @@ -141,7 +141,7 @@ public function testModuleStatusChangeSubtreesHashCacheClear() { * Tests toolbar cache tags implementation. */ public function testMenuLinkUpdateSubtreesHashCacheClear() { - // The ID of a (any) admin menu link. + // The ID of (any) admin menu link. $admin_menu_link_id = 'system.admin_config_development'; // Disable the link. diff --git a/core/modules/tour/js/tour.es6.js b/core/modules/tour/js/tour.es6.js index 52fe8d7dae6545fad750a40dbefe1945bd5ca930..27ad054a54b47b76ae87e6f6addbdd919704e648 100644 --- a/core/modules/tour/js/tour.es6.js +++ b/core/modules/tour/js/tour.es6.js @@ -188,7 +188,7 @@ * Gets the tour. * * @return {jQuery} - * A jQuery element pointing to a `
    ` containing tour items. + * A jQuery element pointing to an `
      ` containing tour items. */ _getTour() { return this.model.get('tour'); @@ -216,7 +216,7 @@ * http://example.com/foo?tips=bar * * @param {jQuery} $tour - * A jQuery element pointing to a `
        ` containing tour items. + * A jQuery element pointing to an `
          ` containing tour items. * @param {jQuery} $document * A jQuery element pointing to the document within which the elements * should be sought. diff --git a/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php b/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php index b809a64ee418f78ca59fdbc71c882663fac39a5f..7724c676472afff7e963e686f8f6c1ba08153968 100644 --- a/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php +++ b/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php @@ -71,7 +71,7 @@ public static function create(ContainerInterface $container, array $configuratio } /** - * Returns a ID that is guaranteed uniqueness. + * Returns an ID that is guaranteed uniqueness. * * @return string * A unique id to be used to generate aria attributes. diff --git a/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php index 0e1d80f13c69d0b8178e514bc9ce006d6425923c..68f15bb7f1eff41c5e16cbbb00cabef9b055e520 100644 --- a/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php +++ b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php @@ -27,7 +27,7 @@ class TipPluginImage extends TipPluginBase { * The alt text which is used for the image in this Tip. * * @var string - * A alt text used for the image. + * An alt text used for the image. */ protected $alt; diff --git a/core/modules/update/src/Access/UpdateManagerAccessCheck.php b/core/modules/update/src/Access/UpdateManagerAccessCheck.php index 12e34cd349fcdd0818f9942fd9633c4709fdfdf7..64fdeb01676e01566a56d06dc3a90ad98119d57b 100644 --- a/core/modules/update/src/Access/UpdateManagerAccessCheck.php +++ b/core/modules/update/src/Access/UpdateManagerAccessCheck.php @@ -19,7 +19,7 @@ class UpdateManagerAccessCheck implements AccessInterface { protected $settings; /** - * Constructs a UpdateManagerAccessCheck object. + * Constructs an UpdateManagerAccessCheck object. * * @param \Drupal\Core\Site\Settings $settings * The read-only settings container. diff --git a/core/modules/update/src/UpdateFetcher.php b/core/modules/update/src/UpdateFetcher.php index 015b354a2c8d6b574932e0e45e0296a8df7011ac..cd04cee102c584a89328233ff6a43baeed00a606 100644 --- a/core/modules/update/src/UpdateFetcher.php +++ b/core/modules/update/src/UpdateFetcher.php @@ -49,7 +49,7 @@ class UpdateFetcher implements UpdateFetcherInterface { protected $withHttpFallback; /** - * Constructs a UpdateFetcher. + * Constructs an UpdateFetcher. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. diff --git a/core/modules/update/src/UpdateManager.php b/core/modules/update/src/UpdateManager.php index 056dce6a6d3d07dc00c3165c2a775e9814677826..8c41ee1b5beebcfd0823eae4d3ddee786cba20fb 100644 --- a/core/modules/update/src/UpdateManager.php +++ b/core/modules/update/src/UpdateManager.php @@ -76,7 +76,7 @@ class UpdateManager implements UpdateManagerInterface { protected $moduleExtensionList; /** - * Constructs a UpdateManager. + * Constructs an UpdateManager. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. diff --git a/core/modules/update/src/UpdateProcessor.php b/core/modules/update/src/UpdateProcessor.php index 8d42dd53622abfc868e156a0b2d9f5962c83cdfd..a05a372e17be8ad06739354460a275a7a1421aae 100644 --- a/core/modules/update/src/UpdateProcessor.php +++ b/core/modules/update/src/UpdateProcessor.php @@ -78,7 +78,7 @@ class UpdateProcessor implements UpdateProcessorInterface { protected $privateKey; /** - * Constructs a UpdateProcessor. + * Constructs an UpdateProcessor. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. diff --git a/core/modules/update/tests/src/Functional/UpdateCoreTest.php b/core/modules/update/tests/src/Functional/UpdateCoreTest.php index c5236493a237f62ccb85961a38c812db577196bd..c52c85348467c14ee946a13b19f1d098f7d6aceb 100644 --- a/core/modules/update/tests/src/Functional/UpdateCoreTest.php +++ b/core/modules/update/tests/src/Functional/UpdateCoreTest.php @@ -787,7 +787,7 @@ public function testFetchTasks() { $this->assertEqual($queue->numberOfItems(), 1, 'Queue contains one item'); update_create_fetch_task($projectb); $this->assertEqual($queue->numberOfItems(), 2, 'Queue contains two items'); - // Try to add project a again. + // Try to add a project again. update_create_fetch_task($projecta); $this->assertEqual($queue->numberOfItems(), 2, 'Queue still contains two items'); diff --git a/core/modules/update/update.module b/core/modules/update/update.module index d6107962d606ef65852f8044a0ac5eeee19fc88d..ec5e65a0e550dc01f5092cefdc7245951b7a5f9e 100644 --- a/core/modules/update/update.module +++ b/core/modules/update/update.module @@ -8,7 +8,7 @@ * contributed modules and themes. It warns site administrators if newer * releases are available via the system status report (admin/reports/status), * the module and theme pages, and optionally via email. It also provides the - * ability to install contributed modules and themes via an user interface. + * ability to install contributed modules and themes via a user interface. */ use Drupal\Core\File\Exception\FileException; diff --git a/core/modules/user/src/Plugin/migrate/destination/EntityUser.php b/core/modules/user/src/Plugin/migrate/destination/EntityUser.php index 5ee10f7685a87940401e2111309ceca684d586cd..e9d732a6799e8ff48ab7c99829636f47ee31deb2 100644 --- a/core/modules/user/src/Plugin/migrate/destination/EntityUser.php +++ b/core/modules/user/src/Plugin/migrate/destination/EntityUser.php @@ -75,7 +75,7 @@ class EntityUser extends EntityContentBase { protected $password; /** - * Builds an user entity destination. + * Builds a user entity destination. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/user/src/Plugin/migrate/destination/UserData.php b/core/modules/user/src/Plugin/migrate/destination/UserData.php index e1775ad42a78affdab2b746f3afb9155361fbb4f..b3d46558a538b450659e8414e5a93bc319dc9cbd 100644 --- a/core/modules/user/src/Plugin/migrate/destination/UserData.php +++ b/core/modules/user/src/Plugin/migrate/destination/UserData.php @@ -22,7 +22,7 @@ class UserData extends DestinationBase implements ContainerFactoryPluginInterfac protected $userData; /** - * Builds an user data entity destination. + * Builds a user data entity destination. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/user/src/Plugin/views/argument_validator/UserName.php b/core/modules/user/src/Plugin/views/argument_validator/UserName.php index 6b7e498e2d556f25d36b378cd2f5f094cc4f2e69..19ddc7c57709856e72ba67be77c8c6e16e2ba33a 100644 --- a/core/modules/user/src/Plugin/views/argument_validator/UserName.php +++ b/core/modules/user/src/Plugin/views/argument_validator/UserName.php @@ -68,7 +68,7 @@ public function validateArgument($argument) { * {@inheritdoc} */ public function processSummaryArguments(&$args) { - // If the validation says the input is an username, we should reverse the + // If the validation says the input is a username, we should reverse the // argument so it works for example for generation summary urls. $uids_arg_keys = array_flip($args); diff --git a/core/modules/user/tests/src/Functional/Views/BulkFormTest.php b/core/modules/user/tests/src/Functional/Views/BulkFormTest.php index 156043edf8ff8f1472db2491bf8100f71f365f53..9edd0a84e3ca7645fbf0896a2a8fa1695393ad95 100644 --- a/core/modules/user/tests/src/Functional/Views/BulkFormTest.php +++ b/core/modules/user/tests/src/Functional/Views/BulkFormTest.php @@ -41,7 +41,7 @@ public function testBulkForm() { $this->drupalLogin($this->drupalCreateUser(['administer permissions'])); $user_storage = $this->container->get('entity_type.manager')->getStorage('user'); - // Create an user which actually can change users. + // Create a user which actually can change users. $this->drupalLogin($this->drupalCreateUser(['administer users'])); $this->drupalGet('test-user-bulk-form'); $result = $this->cssSelect('#edit-action option'); diff --git a/core/modules/user/tests/src/Kernel/UserValidationTest.php b/core/modules/user/tests/src/Kernel/UserValidationTest.php index 66925613a1df963da755f3589e5b7b50f2d1143f..8fc39a196a555137e679545b6f53ea7f894c20fe 100644 --- a/core/modules/user/tests/src/Kernel/UserValidationTest.php +++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php @@ -208,7 +208,7 @@ protected function assertLengthViolation(EntityInterface $entity, $field_name, $ } /** - * Verifies that a AllowedValues violation exists for the given field. + * Verifies that an AllowedValues violation exists for the given field. * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object to validate. diff --git a/core/modules/user/tests/src/Kernel/Views/HandlerArgumentUserUidTest.php b/core/modules/user/tests/src/Kernel/Views/HandlerArgumentUserUidTest.php index 2b5df96e9e32479fffc856f3386a7294b5c3c9f6..0e01571f9fc1db7c3d4dae4c4bd2e3a89e0cda7f 100644 --- a/core/modules/user/tests/src/Kernel/Views/HandlerArgumentUserUidTest.php +++ b/core/modules/user/tests/src/Kernel/Views/HandlerArgumentUserUidTest.php @@ -35,7 +35,7 @@ class HandlerArgumentUserUidTest extends KernelTestBase { public static $testViews = ['test_user_uid_argument']; /** - * Tests the generated title of an user: uid argument. + * Tests the generated title of a user: uid argument. */ public function testArgumentTitle() { $this->installSchema('system', ['sequences']); diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php index 368f4da6b9b64968afcb493e1861135ca85be739..a6ea8866a46ca7c4ed5802980c2b9259dbe61ad7 100644 --- a/core/modules/views/src/Form/ViewsExposedForm.php +++ b/core/modules/views/src/Form/ViewsExposedForm.php @@ -101,7 +101,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { // Grouped exposed filters have their own forms. // Instead of render the standard exposed form, a new Select or // Radio form field is rendered with the available groups. - // When an user chooses an option the selected value is split + // When a user chooses an option the selected value is split // into the operator and value that the item represents. if ($handler->isAGroup()) { $handler->groupForm($form, $form_state); diff --git a/core/modules/views/src/Plugin/Block/ViewsBlockBase.php b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php index 3b18ce94fd1f89a8a4924e3a36194413376dd7d8..ac041a2e04a099f9a4e5848f7e3dfeac93aef883 100644 --- a/core/modules/views/src/Plugin/Block/ViewsBlockBase.php +++ b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php @@ -193,7 +193,7 @@ public function blockSubmit($form, FormStateInterface $form_state) { * Converts Views block content to a renderable array with contextual links. * * @param string|array $output - * An string|array representing the block. This will be modified to be a + * A string|array representing the block. This will be modified to be a * renderable array, containing the optional '#contextual_links' property (if * there are any contextual links associated with the block). * @param string $block_type diff --git a/core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php b/core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php index 9c2baeea820d791118255bf0d877bf9ee37112ec..8f059602fb215d0279371e52a206bf8c75b0bf55 100644 --- a/core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php +++ b/core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php @@ -41,7 +41,7 @@ class ViewsEntityArgumentValidator extends DeriverBase implements ContainerDeriv protected $derivatives = []; /** - * Constructs an ViewsEntityArgumentValidator object. + * Constructs a ViewsEntityArgumentValidator object. * * @param string $base_plugin_id * The base plugin ID. diff --git a/core/modules/views/src/Plugin/views/argument_validator/Entity.php b/core/modules/views/src/Plugin/views/argument_validator/Entity.php index eca9155c29eb805edcc2a3cea94087ad11d2c093..d41de84827866883f79aa9d6e10e67372d42ab05 100644 --- a/core/modules/views/src/Plugin/views/argument_validator/Entity.php +++ b/core/modules/views/src/Plugin/views/argument_validator/Entity.php @@ -11,7 +11,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** - * Defines a argument validator plugin for each entity type. + * Defines an argument validator plugin for each entity type. * * @ViewsArgumentValidator( * id = "entity", @@ -44,7 +44,7 @@ class Entity extends ArgumentValidatorPluginBase { protected $multipleCapable = TRUE; /** - * Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object. + * Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/views/src/Plugin/views/display/EntityReference.php b/core/modules/views/src/Plugin/views/display/EntityReference.php index 1cfec93913654aeac35d9e29f0ec1bf04f871251..47c372bc37d0657be2944c184a9da319ecd26463 100644 --- a/core/modules/views/src/Plugin/views/display/EntityReference.php +++ b/core/modules/views/src/Plugin/views/display/EntityReference.php @@ -9,7 +9,7 @@ * The plugin that handles an EntityReference display. * * "entity_reference_display" is a custom property, used with - * \Drupal\views\Views::getApplicableViews() to retrieve all views with a + * \Drupal\views\Views::getApplicableViews() to retrieve all views with an * 'Entity Reference' display. * * @ingroup views_display_plugins diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php index cf280fb82524a5a8e838c1ac70ba9ebda58cda04..c23100382bd22cb6068d96a6d439a9e4349db7ce 100644 --- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php @@ -242,7 +242,7 @@ protected function overrideApplies($view_path, Route $view_route, Route $route) } /** - * Determines whether a override for the path and method should happen. + * Determines whether an override for the path and method should happen. * * @param string $view_path * The path of the view. diff --git a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php index d07a303058b99c1ddcf354f4208635e84951aeb4..cfb593d6e663671f2299ad79b57373f511c850f3 100644 --- a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php +++ b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php @@ -347,7 +347,7 @@ public function getCacheMaxAge() { public function getCacheContexts() { $contexts = []; if ($this->options['expose_sort_order']) { - // The sort order query arg is just important in case there is a exposed + // The sort order query arg is just important in case there is an exposed // sort order. $has_exposed_sort_handler = FALSE; /** @var \Drupal\views\Plugin\views\sort\SortPluginBase $sort_handler */ diff --git a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php index 9759ae50a36da97b809939b6461911f458a76a08..b06b831931978e4c6c391c3c8f186ab75dab4270 100644 --- a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php +++ b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php @@ -15,7 +15,7 @@ * validation, and submission of exposed forms, and may add additional form * elements. * - * To define a Exposed Form Plugin in a module you need to: + * To define an Exposed Form Plugin in a module you need to: * - Implement * \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface. * - Usually you will want to extend the diff --git a/core/modules/views/src/Plugin/views/field/BulkForm.php b/core/modules/views/src/Plugin/views/field/BulkForm.php index a94bc5fad4df34a525c10ccc7e77421da94a7fd9..04c58e46acf04c36fbb4734f1d20541ba1145ee3 100644 --- a/core/modules/views/src/Plugin/views/field/BulkForm.php +++ b/core/modules/views/src/Plugin/views/field/BulkForm.php @@ -20,7 +20,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** - * Defines a actions-based bulk operation form element. + * Defines an actions-based bulk operation form element. * * @ViewsField("bulk_form") */ diff --git a/core/modules/views/src/Plugin/views/field/EntityLabel.php b/core/modules/views/src/Plugin/views/field/EntityLabel.php index 9d7dbfe6f980c453093a048bffe22242a5099b79..10c708b64c4f8a2522f9cf158892df99d86dafe1 100644 --- a/core/modules/views/src/Plugin/views/field/EntityLabel.php +++ b/core/modules/views/src/Plugin/views/field/EntityLabel.php @@ -33,7 +33,7 @@ class EntityLabel extends FieldPluginBase { protected $entityTypeManager; /** - * Constructs a EntityLabel object. + * Constructs an EntityLabel object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/views/src/Plugin/views/field/LinkBase.php b/core/modules/views/src/Plugin/views/field/LinkBase.php index 6e234737855396e74c30f9967231dec13fd1ab45..dfbf50c41bc94fc99eb64991367bf028b9868b5f 100644 --- a/core/modules/views/src/Plugin/views/field/LinkBase.php +++ b/core/modules/views/src/Plugin/views/field/LinkBase.php @@ -195,7 +195,7 @@ protected function checkUrlAccess(ResultRow $row) { abstract protected function getUrlInfo(ResultRow $row); /** - * Prepares the link to view a entity. + * Prepares the link to view an entity. * * @param \Drupal\views\ResultRow $row * A view result row. diff --git a/core/modules/views/src/Plugin/views/field/Links.php b/core/modules/views/src/Plugin/views/field/Links.php index 4e731a9af57473b3f4702c4f3313d52bf8b914ee..899d082504cadf807358935a9ba3b2522730ca68 100644 --- a/core/modules/views/src/Plugin/views/field/Links.php +++ b/core/modules/views/src/Plugin/views/field/Links.php @@ -7,7 +7,7 @@ use Drupal\Core\Url as UrlObject; /** - * A abstract handler which provides a collection of links. + * An abstract handler which provides a collection of links. * * @ingroup views_field_handlers */ diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php index 03b25b43d8a84bd39d5f9bf45b73c0fdaf677467..6c48cb3283c7c0170edced3c1c1206c5e32cd567 100644 --- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php @@ -77,7 +77,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen /** * @var bool - * Disable the possibility to allow a exposed input to be optional. + * Disable the possibility to allow an exposed input to be optional. */ public $always_required = FALSE; @@ -739,7 +739,7 @@ protected function buildGroupValidate($form, FormStateInterface $form_state) { /** * Validates a filter identifier. * - * Sets the form error if $form_state is passed or a error string if + * Sets the form error if $form_state is passed or an error string if * $form_state is not passed. * * @param string $identifier diff --git a/core/modules/views/src/Plugin/views/join/JoinPluginInterface.php b/core/modules/views/src/Plugin/views/join/JoinPluginInterface.php index f3fca7df219f208055f76777cc4d3b5c8339d42d..275224160083efc13c3458a766bb124126595caa 100644 --- a/core/modules/views/src/Plugin/views/join/JoinPluginInterface.php +++ b/core/modules/views/src/Plugin/views/join/JoinPluginInterface.php @@ -15,7 +15,7 @@ interface JoinPluginInterface { * When possible, try to use table alias instead of table names. * * @param $select_query - * An select query object. + * A select query object. * @param $table * The base table to join. * @param \Drupal\views\Plugin\views\query\QueryPluginBase $view_query diff --git a/core/modules/views/src/Plugin/views/query/SqliteDateSql.php b/core/modules/views/src/Plugin/views/query/SqliteDateSql.php index 2275d4c6c3aca5deb2e3d4e5aa1f0d1d04f372e6..d6006ac71f9753fa6981428eeb17ea81793cc87d 100644 --- a/core/modules/views/src/Plugin/views/query/SqliteDateSql.php +++ b/core/modules/views/src/Plugin/views/query/SqliteDateSql.php @@ -83,7 +83,7 @@ public function getDateField($field, $string_date) { public function getDateFormat($field, $format) { $format = strtr($format, static::$replace); - // SQLite does not have a ISO week substitution string, so it needs special + // SQLite does not have an ISO week substitution string, so it needs special // handling. // @see http://wikipedia.org/wiki/ISO_week_date#Calculation // @see http://stackoverflow.com/a/15511864/1499564 diff --git a/core/modules/views/src/Plugin/views/style/StylePluginBase.php b/core/modules/views/src/Plugin/views/style/StylePluginBase.php index f031a32f6d676bf2c927a3e9606fd600988b9510..c78690f647b9078baff9004fd79d051759f68822 100644 --- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php +++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php @@ -246,7 +246,8 @@ public function tokenizeValue($value, $row_index) { } /** - * Should the output of the style plugin be rendered even if it's a empty view. + * Should the output of the style plugin be rendered even if it's an empty + * view. */ public function evenEmpty() { return !empty($this->definition['even empty']); diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index ddfe15e09df13fa6d404a7f7c2daaf2480a239bd..94720430dacc460a0917615900926d53efebfb46 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -2210,7 +2210,7 @@ public function addHandler($display_id, $type, $table, $field, $options = [], $i } /** - * Generates a unique ID for an handler instance. + * Generates a unique ID for a handler instance. * * These handler instances are typically fields, filters, sort criteria, or * arguments. diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_default/ArgumentDefaultTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_default/ArgumentDefaultTest.php index ac068e17af4186dbdde36a9d0159c42e1a9521d1..3cc81e279d57df2ff4a8e63c306bfc194c06e5dd 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_default/ArgumentDefaultTest.php +++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_default/ArgumentDefaultTest.php @@ -5,7 +5,7 @@ use Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase; /** - * Defines a argument default test plugin. + * Defines an argument default test plugin. * * @ViewsArgumentDefault( * id = "argument_default_test", diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php index 7bccb9b3831b09abf412623bfa0220287a9722a3..ebffc7af7dcacc58db99dc627da48f3ee5915406 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php +++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php @@ -5,7 +5,7 @@ use Drupal\views\Plugin\views\argument_validator\ArgumentValidatorPluginBase; /** - * Defines a argument validator test plugin. + * Defines an argument validator test plugin. * * @ViewsArgumentValidator( * id = "argument_validator_test", diff --git a/core/modules/views/tests/src/Functional/Handler/AreaTest.php b/core/modules/views/tests/src/Functional/Handler/AreaTest.php index 9138cc7aa5fb3f3711b95e58ddfa6bf29aa3f9e3..133119a59a31f7d68763dff1817cce531086111d 100644 --- a/core/modules/views/tests/src/Functional/Handler/AreaTest.php +++ b/core/modules/views/tests/src/Functional/Handler/AreaTest.php @@ -54,7 +54,7 @@ protected function viewsData() { } /** - * Tests the generic UI of a area handler. + * Tests the generic UI of an area handler. */ public function testUI() { $admin_user = $this->drupalCreateUser([ diff --git a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php index 3c7b7c933df724f2aa82ee65f94f2ee08145d3c6..3abe753a7f9c98c4bbbcab39aa94cbe28db07c92 100644 --- a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php @@ -216,7 +216,7 @@ public function testNoLimit() { $this->executeView($view); $this->assertCount(11, $view->result, 'Make sure that every item is returned in the result'); - // Setup and test a offset. + // Setup and test an offset. $view = Views::getView('test_pager_none'); $view->setDisplay(); $pager = [ @@ -264,7 +264,7 @@ public function testLimit() { $this->executeView($view); $this->assertCount(5, $view->result, 'Make sure that only a certain count of items is returned'); - // Setup and test a offset. + // Setup and test an offset. $view = Views::getView('test_pager_some'); $view->setDisplay(); $pager = [ @@ -298,7 +298,7 @@ public function testNormalPager() { $this->executeView($view); $this->assertCount(5, $view->result, 'Make sure that only a certain count of items is returned'); - // Setup and test a offset. + // Setup and test an offset. $view = Views::getView('test_pager_full'); $view->setDisplay(); $pager = [ @@ -321,7 +321,7 @@ public function testNormalPager() { // TODO test number of pages. // Test items per page = 0. - // Setup and test a offset. + // Setup and test an offset. $view = Views::getView('test_pager_full'); $view->setDisplay(); $pager = [ diff --git a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php index 1b5683c3c5005b5bf98b4779f75c5bd8948a55f8..29014ddeac1993842496984815dd0f10bf31c54c 100644 --- a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php @@ -56,7 +56,7 @@ public function testAreaText() { $view->destroy(); $view->setDisplay(); - // Add a argument, which has null as handler. + // Add an argument, which has null as handler. $view->displayHandlers->get('default')->overrideOption('arguments', [ 'id' => [ 'id' => 'id', diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php b/core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php index 1f9b017bdbb736a8a4ab5de5a9cf697e61cde0c0..0c41f387c919448b9f510e2186655dfb5dc4b112 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php +++ b/core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php @@ -14,14 +14,14 @@ abstract class FieldFieldAccessTestBase extends ViewsKernelTestBase { /** - * Stores an user entity with access to fields. + * Stores a user entity with access to fields. * * @var \Drupal\user\UserInterface */ protected $userWithAccess; /** - * Stores an user entity without access to fields. + * Stores a user entity without access to fields. * * @var \Drupal\user\UserInterface */ diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php index 6e7e084f9c0a5b477327a34b0e447796dd33501e..fe30f125d015d6b6d1171066139a81f1241cfb73 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php @@ -46,7 +46,7 @@ public function testFilterInOperatorSimple() { $view = Views::getView('test_view'); $view->setDisplay(); - // Add a in_operator ordering. + // Add an in_operator ordering. $view->displayHandlers->get('default')->overrideOption('filters', [ 'age' => [ 'id' => 'age', @@ -76,7 +76,7 @@ public function testFilterInOperatorSimple() { $view->destroy(); $view->setDisplay(); - // Add a in_operator ordering. + // Add an in_operator ordering. $view->displayHandlers->get('default')->overrideOption('filters', [ 'age' => [ 'id' => 'age', diff --git a/core/modules/views/tests/src/Kernel/ModuleTest.php b/core/modules/views/tests/src/Kernel/ModuleTest.php index e3b132cdcdff4f4fbcc8a4ee20b98dba1c3784af..d0c34f3c98506610e4b265e4f0dd9a03aa58c010 100644 --- a/core/modules/views/tests/src/Kernel/ModuleTest.php +++ b/core/modules/views/tests/src/Kernel/ModuleTest.php @@ -334,7 +334,7 @@ protected function formatViewOptions(array $views = []) { } /** - * Ensure that a certain handler is a instance of a certain table/field. + * Ensure that a certain handler is an instance of a certain table/field. */ public function assertInstanceHandler($handler, $table, $field, $id) { $table_data = $this->container->get('views.views_data')->get($table); diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php index c30780c3fcd8dea1df608546841a58fd5c5b5301..e4262f27f0c98bc53e5d7581441ab45e90ac3500 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php @@ -100,7 +100,7 @@ public function testTable() { $this->assertIdentical($style_plugin->active, NULL, 'No sort field was set, when invalid sort order was specified.'); $view->destroy(); - // Use a existing field, and sort both ascending and descending. + // Use an existing field, and sort both ascending and descending. foreach (['asc', 'desc'] as $order) { $this->prepareView($view); $style_plugin = $view->style_plugin; diff --git a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php index 83d819f8ea6f7a5c4e1520014c872376be199c8a..507c40eb5f0003a4e5ff9105fcdf667a5277a1cb 100644 --- a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php +++ b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php @@ -71,7 +71,7 @@ public function testAggregateCount() { $types = []; foreach ($view->result as $item) { - // num_records is a alias for id. + // num_records is an alias for id. $types[$item->entity_test_name] = $item->num_records; } diff --git a/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php b/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php index 838649599333d4a0f0c90e17831b724347a6a24a..e019414a9b432d8250a81099978cb696f0fb0f7c 100644 --- a/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php +++ b/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php @@ -185,7 +185,7 @@ protected function assertCacheTagsForFieldBasedView($do_assert_views_caches) { } /** - * Tests a entity-based view's cache tags when using the "none" cache plugin. + * Tests an entity-based view's cache tags when using the "none" cache plugin. */ public function testEntityBasedViewCacheTagsWithCachePluginNone() { $view = Views::getview('entity_test_row'); @@ -198,7 +198,7 @@ public function testEntityBasedViewCacheTagsWithCachePluginNone() { } /** - * Tests a entity-based view's cache tags when using the "tag" cache plugin. + * Tests an entity-based view's cache tags when using the "tag" cache plugin. */ public function testEntityBasedViewCacheTagsWithCachePluginTag() { $view = Views::getview('entity_test_row'); @@ -211,7 +211,7 @@ public function testEntityBasedViewCacheTagsWithCachePluginTag() { } /** - * Tests a entity-based view's cache tags when using the "time" cache plugin. + * Tests an entity-based view's cache tags when using the "time" cache plugin. */ public function testEntityBasedViewCacheTagsWithCachePluginTime() { $view = Views::getview('entity_test_row'); diff --git a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php index 2338d469c32bbc8dfca68e6d79476740e7f5960a..6e0621e40fde5b6d0b9b87e9c4343ce4360b0576 100644 --- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php +++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php @@ -1129,7 +1129,7 @@ protected function assertLanguageField($data) { } /** - * Tests views data for a entity reference field. + * Tests views data for an entity reference field. */ protected function assertEntityReferenceField($data) { $this->assertEquals('field', $data['field']['id']); diff --git a/core/modules/views/tests/src/Unit/PluginBaseTest.php b/core/modules/views/tests/src/Unit/PluginBaseTest.php index cc169d0d8b0320401c45c4c27ac949f66262b9b3..8d2f8e0d4cceb7c61982952be4eb5ac1c815a3e6 100644 --- a/core/modules/views/tests/src/Unit/PluginBaseTest.php +++ b/core/modules/views/tests/src/Unit/PluginBaseTest.php @@ -87,7 +87,7 @@ public function providerTestUnpackOptions() { 'key' => 'value', ], ]; - // Set a storage and a option value, so the option value should be kept. + // Set a storage and an option value, so the option value should be kept. $test_parameters[] = [ 'storage' => [ 'key' => 'value', diff --git a/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php b/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php index 2250acf7b3758906d3fd597377c5f479faf0e9a2..56bd1235129cf124eb282cb43bef9516afd4fd33 100644 --- a/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php +++ b/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php @@ -101,7 +101,7 @@ public function testHandleWithArgumentsWithoutOverridden() { } /** - * Tests the page controller with arguments of a overridden page view. + * Tests the page controller with arguments of an overridden page view. * * Note: This test does not care about upcasting for now. */ @@ -137,7 +137,7 @@ public function testHandleWithArgumentsOnOverriddenRoute() { } /** - * Tests the page controller with arguments of a overridden page view. + * Tests the page controller with arguments of an overridden page view. * * This test care about upcasted values and ensures that the raw variables * are pulled in. diff --git a/core/modules/views/tests/src/Unit/ViewsDataTest.php b/core/modules/views/tests/src/Unit/ViewsDataTest.php index c198128a491bbc86e9ef3bb78cb3f27d1e57c6e9..10c66ac02de6142c716f08201854d6c1f67c9f7b 100644 --- a/core/modules/views/tests/src/Unit/ViewsDataTest.php +++ b/core/modules/views/tests/src/Unit/ViewsDataTest.php @@ -480,7 +480,7 @@ public function testCacheCallsWithWarmCacheAndDifferentTable() { } /** - * Tests the cache calls for an non-existent table: + * Tests the cache calls for a non-existent table: * * Warm cache: * - all tables @@ -518,7 +518,7 @@ public function testCacheCallsWithWarmCacheAndInvalidTable() { } /** - * Tests the cache calls for an non-existent table: + * Tests the cache calls for a non-existent table: * * Warm cache: * - all tables diff --git a/core/modules/views_ui/admin.inc b/core/modules/views_ui/admin.inc index a37ea0e11ca50b01a6f3a6e487d1fc3af7e6e69d..7f8163d1f444bab321b2ea41244a0cd078fecf08 100644 --- a/core/modules/views_ui/admin.inc +++ b/core/modules/views_ui/admin.inc @@ -248,7 +248,7 @@ function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_sta $display_dropdown['default'] = ($section_overrides ? t('All displays (except overridden)') : t('All displays')); $display_dropdown[$display_id] = t('This @display_type (override)', ['@display_type' => $current_display->getPluginId()]); - // Only display the revert option if we are in a overridden section. + // Only display the revert option if we are in an overridden section. if (!$section_defaulted) { $display_dropdown['default_revert'] = t('Revert to default'); } diff --git a/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php b/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php index c19c73c6d7264b4f1a3a1fe2f23a869f876e9a8d..44b2087a18ed1885952408a23b99ca23e770ac1d 100644 --- a/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php +++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php @@ -44,7 +44,7 @@ public function getFormState(ViewEntityInterface $view, $display_id, $js); * be 'nojs'. This determines the response. * * @return array - * An form for a specific operation in the Views UI, or an array of AJAX + * A form for a specific operation in the Views UI, or an array of AJAX * commands to render a form. * * @todo When https://www.drupal.org/node/1843224 is in, this will return diff --git a/core/modules/views_ui/src/ViewEditForm.php b/core/modules/views_ui/src/ViewEditForm.php index c4a5a94b336e9d305e70ef84c8b61c08784b4c77..34085ca080f6dcd1a2373b0691345d3ffd10fe5c 100644 --- a/core/modules/views_ui/src/ViewEditForm.php +++ b/core/modules/views_ui/src/ViewEditForm.php @@ -792,7 +792,7 @@ public function renderDisplayTop(ViewUI $view) { '#submit' => ['::submitDisplayAdd', '::submitDelayDestination'], '#attributes' => ['class' => ['add-display']], // Allow JavaScript to remove the 'Add ' prefix from the button label when - // placing the button in a "Add" dropdown menu. + // placing the button in an "Add" dropdown menu. '#process' => array_merge(['views_ui_form_button_was_clicked'], $this->elementInfo->getInfoProperty('submit', '#process', [])), '#values' => [$this->t('Add @display', ['@display' => $label]), $label], ]; diff --git a/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php b/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php index 7810aec5938480b11c0aae2cde2f9181e209fdfe..dba8326f97db9be86a586a159e400ef75a38f404 100644 --- a/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php +++ b/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php @@ -25,7 +25,7 @@ class AreaEntityUITest extends UITestBase { protected $defaultTheme = 'stark'; public function testUI() { - // Set up a block and a entity_test entity. + // Set up a block and an entity_test entity. $block = Block::create(['id' => 'test_id', 'plugin' => 'system_main_block']); $block->save(); diff --git a/core/modules/workflows/src/Annotation/WorkflowType.php b/core/modules/workflows/src/Annotation/WorkflowType.php index 496a9b822412cf6f5f190fde516adb3fab3d00f1..97330c90c1ebc230f2932aee011624e24e2e2f31 100644 --- a/core/modules/workflows/src/Annotation/WorkflowType.php +++ b/core/modules/workflows/src/Annotation/WorkflowType.php @@ -5,7 +5,7 @@ use Drupal\Component\Annotation\Plugin; /** - * Defines an Workflow type annotation object. + * Defines a Workflow type annotation object. * * Plugin Namespace: Plugin\WorkflowType * diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 91b47782610a260ce11ee078676d8242d4cf588a..2db30d956b6b4c34ed99d689aea316568f38fdf1 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -908,9 +908,9 @@ function simpletest_script_command($test_id, $test_class) { /** * Removes all remnants of a test runner. * - * In case a (e.g., fatal) error occurs after the test site has been fully setup - * and the error happens in many tests, the environment that executes the tests - * can easily run out of memory or disk space. This function ensures that all + * In case a fatal error occurs after the test site has been fully setup and + * the error happens in many tests, the environment that executes the tests can + * easily run out of memory or disk space. This function ensures that all * created resources are properly cleaned up after every executed test. * * This clean-up only exists in this script, since SimpleTest module itself does diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php index 721174dc3f71d8873e6d6f591845ebea76dfcf2d..7f521b41de6577c9010e199f0d4517d7ea91a39e 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php @@ -48,7 +48,7 @@ public function testSimpleAJAXFormValue() { $this->drupalGet('ajax_forms_test_get_form'); $build_id_initial = $this->getFormBuildId(); - // Changing the value of a select input element, triggers a AJAX + // Changing the value of a select input element, triggers an AJAX // request/response. The callback on the form responds with three AJAX // commands: // - UpdateBuildIdCommand @@ -66,7 +66,7 @@ public function testSimpleAJAXFormValue() { $build_id_first_ajax = $this->getFormBuildId(); $this->assertNotEquals($build_id_initial, $build_id_first_ajax, 'Build id is changed in the form_build_id element on first AJAX submission'); - // Changing the value of a select input element, triggers a AJAX + // Changing the value of a select input element, triggers an AJAX // request/response. $session->getPage()->selectFieldOption('select', 'red'); @@ -84,7 +84,7 @@ public function testSimpleAJAXFormValue() { $build_id_from_cache_initial = $this->getFormBuildId(); $this->assertEquals($build_id_initial, $build_id_from_cache_initial, 'Build id is the same as on the first request'); - // Changing the value of a select input element, triggers a AJAX + // Changing the value of a select input element, triggers an AJAX // request/response. $session->getPage()->selectFieldOption('select', 'green'); @@ -96,7 +96,7 @@ public function testSimpleAJAXFormValue() { $this->assertNotEquals($build_id_from_cache_initial, $build_id_from_cache_first_ajax, 'Build id is changed in the simpletest-DOM on first AJAX submission'); $this->assertNotEquals($build_id_first_ajax, $build_id_from_cache_first_ajax, 'Build id from first user is not reused'); - // Changing the value of a select input element, triggers a AJAX + // Changing the value of a select input element, triggers an AJAX // request/response. $session->getPage()->selectFieldOption('select', 'red'); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxInGroupTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxInGroupTest.php index 08c36b3517f81d1acf20fc6c90f35fa245937a94..8d093569d0d9b933190b1c4dbedc323c68901a45 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxInGroupTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxInGroupTest.php @@ -45,7 +45,7 @@ public function testSimpleAjaxFormValue() { $this->assertNotNull($checkbox_original, 'The checkbox_in_group is on the page.'); $original_id = $checkbox_original->getAttribute('id'); - // Triggers a AJAX request/response. + // Triggers an AJAX request/response. $checkbox_original->check(); // The response contains a new nested "test group" form element, similar diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php index 4d31ecda8bc6faab4fdbeccc93d651e4562ccd9d..f5238eee7f7c9778cbadf5739bf8fbd68719621c 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php @@ -46,7 +46,7 @@ public function testDialog() { // expected. $this->getSession()->getPage()->clickLink('Link 1 (modal)'); - // Clicking the link triggers a AJAX request/response. + // Clicking the link triggers an AJAX request/response. // Opens a Dialog panel. $link1_dialog_div = $this->assertSession()->waitForElementVisible('css', 'div.ui-dialog'); $this->assertNotNull($link1_dialog_div, 'Link was used to open a dialog ( modal )'); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php index af7bad75222e0e97f3d77ea25f0943650d253128..de386436dac9abb02433484808400f9b44e75f03 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php @@ -48,9 +48,9 @@ public function testAjaxElementValidation() { $page->fillField('drivernumber', '12345'); $page->findField('spare_required_field')->focus(); - // The AJAX request/response will complete successfully when a InsertCommand - // injects a message with a placeholder element into the DOM with the - // submitted number. + // The AJAX request/response will complete successfully when an + // InsertCommand injects a message with a placeholder element into the DOM + // with the submitted number. $placeholder_number = $assert->waitForElement('css', "ul.messages__list li.messages__item em:contains('12345')"); $this->assertNotNull($placeholder_number, 'A callback successfully echoed back a number.'); } diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php index 1c65b1e02a86d12c50a544abf69b6447dbe66293..d23c91653b99e71e974a058b2e04af98b2047534 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php @@ -42,7 +42,7 @@ public function testSimpleAjaxFormValue() { // Verify form values of a select element. foreach (['green', 'blue', 'red'] as $item) { - // Updating the field will trigger a AJAX request/response. + // Updating the field will trigger an AJAX request/response. $session->getPage()->selectFieldOption('select', $item); // The AJAX command in the response will update the DOM @@ -67,7 +67,7 @@ public function testSimpleAjaxFormValue() { $this->assertAjaxHeader = FALSE; foreach (['null', 'empty', 'nonexistent'] as $key) { $element_name = 'select_' . $key . '_callback'; - // Updating the field will trigger a AJAX request/response. + // Updating the field will trigger an AJAX request/response. $session->getPage()->selectFieldOption($element_name, 'green'); // The select element is disabled as the AJAX request is issued. diff --git a/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php b/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php index 1ea340e6d5611dc801a02dfa55fd47cfe68deea0..1020ba5eb78b9b7a3004070118d3921983d1c9d6 100644 --- a/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php +++ b/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php @@ -34,7 +34,7 @@ class RouteCachingLanguageTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * An user with permissions to administer content types. + * A user with permissions to administer content types. * * @var \Drupal\user\UserInterface */ diff --git a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php index 1639a301b52a0b7e2519b175f8329f11f3888952..dfe79ea835eb3d201e44428238d5bdb2c78888ac 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php @@ -272,7 +272,7 @@ public function testValidEntityAutocompleteElement() { public function testInvalidEntityAutocompleteElement() { $form_builder = $this->container->get('form_builder'); - // Test 'single' with a entity label that doesn't exist + // Test 'single' with an entity label that doesn't exist $form_state = (new FormState()) ->setValues([ 'single' => 'single - non-existent label', @@ -281,7 +281,7 @@ public function testInvalidEntityAutocompleteElement() { $this->assertCount(1, $form_state->getErrors()); $this->assertEqual($form_state->getErrors()['single'], t('There are no entities matching "%value".', ['%value' => 'single - non-existent label'])); - // Test 'single' with a entity ID that doesn't exist. + // Test 'single' with an entity ID that doesn't exist. $form_state = (new FormState()) ->setValues([ 'single' => 'single - non-existent label (42)', diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php index c6b7ae33cb95deee3377d392357dc5671378c352..397fce77d32dec59fecee450829c1a5fad8bb700 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php @@ -78,7 +78,7 @@ public function testUserLabelAccess() { 'view label' => TRUE, ], $user); - // Switch to a anonymous user account. + // Switch to an anonymous user account. $account_switcher = \Drupal::service('account_switcher'); $account_switcher->switchTo(new AnonymousUserSession()); @@ -216,7 +216,7 @@ public function testEntityTranslationAccess() { } /** - * Ensures the static access cache works correctly in the absence of an UUID. + * Ensures the static access cache works correctly in the absence of a UUID. * * @see entity_test_entity_access() */ diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityAutocompleteTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityAutocompleteTest.php index 728b9ea2515b00bcf5917568e0872b1eefaa913a..af2f11b1ef588c640f6725c7e7441d87c195d71a 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityAutocompleteTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityAutocompleteTest.php @@ -54,14 +54,14 @@ public function testEntityReferenceAutocompletion() { ->create(['name' => 'label with, and / test']); $entity_3->save(); - // Try to autocomplete a entity label that matches both entities. + // Try to autocomplete an entity label that matches both entities. // We should get both entities in a JSON encoded string. $input = '10/'; $data = $this->getAutocompleteResult($input); $this->assertIdentical($data[0]['label'], Html::escape($entity_1->name->value), 'Autocomplete returned the first matching entity'); $this->assertIdentical($data[1]['label'], Html::escape($entity_2->name->value), 'Autocomplete returned the second matching entity'); - // Try to autocomplete a entity label that matches the first entity. + // Try to autocomplete an entity label that matches the first entity. // We should only get the first entity in a JSON encoded string. $input = '10/16'; $data = $this->getAutocompleteResult($input); @@ -71,13 +71,13 @@ public function testEntityReferenceAutocompletion() { ]; $this->assertIdentical(reset($data), $target, 'Autocomplete returns only the expected matching entity.'); - // Try to autocomplete a entity label that matches the second entity, and + // Try to autocomplete an entity label that matches the second entity, and // the first entity is already typed in the autocomplete (tags) widget. $input = $entity_1->name->value . ' (1), 10/17'; $data = $this->getAutocompleteResult($input); $this->assertIdentical($data[0]['label'], Html::escape($entity_2->name->value), 'Autocomplete returned the second matching entity'); - // Try to autocomplete a entity label with both a comma, a slash and markup. + // Try to autocomplete an entity label with both comma, slash and markup. $input = '"label with, and /"'; $data = $this->getAutocompleteResult($input); $n = $entity_3->name->value . ' (3)'; diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php index 506f1f458aa83868578bfebb97650aa04076c137..9683ae58315d28abcef18e811c51d02773e9d8f0 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php @@ -639,7 +639,7 @@ protected function doTestLanguageFallback($entity_type) { // Check that if the entity has no translation no fallback is applied. $entity2 = $controller->create([$langcode_key => $default_langcode]); - // Get an view builder. + // Get a view builder. $controller = $this->entityTypeManager->getViewBuilder($entity_type); $entity2_build = $controller->view($entity2); $entity2_output = (string) $renderer->renderRoot($entity2_build); diff --git a/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php index 4955fb8c3699e3c0a1ee931c8b58b5dfbb2eea84..86ca64c9c9f12ed8054e7342e21a14bedf5b1c75 100644 --- a/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php +++ b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php @@ -84,7 +84,7 @@ public function testCacheToken() { * Tests the form cache without a logged-in user. */ public function testNoCacheToken() { - // Switch to a anonymous user account. + // Switch to an anonymous user account. $account_switcher = \Drupal::service('account_switcher'); $account_switcher->switchTo(new AnonymousUserSession()); diff --git a/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php b/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php index d01537b7b2d729ce705507a447d7e855c952f7ef..0a9852d7d4a315aee700e24f4f9b538c14d76ad1 100644 --- a/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php @@ -19,7 +19,7 @@ public function testAvailableLinkRelationships() { /** @var \Drupal\Core\Http\LinkRelationTypeManager $link_relation_type_manager */ $link_relation_type_manager = $this->container->get('plugin.manager.link_relation_type'); - // An link relation type of the "registered" kind. + // A link relation type of the "registered" kind. /** @var \Drupal\Core\Http\LinkRelationTypeInterface $canonical */ $canonical = $link_relation_type_manager->createInstance('canonical'); $this->assertInstanceOf(LinkRelationType::class, $canonical); @@ -31,7 +31,7 @@ public function testAvailableLinkRelationships() { $this->assertEquals('Designates the preferred version of a resource (the IRI and its contents).', $canonical->getDescription()); $this->assertEquals('', $canonical->getNotes()); - // An link relation type of the "extension" kind. + // A link relation type of the "extension" kind. /** @var \Drupal\Core\Http\LinkRelationTypeInterface $canonical */ $add_form = $link_relation_type_manager->createInstance('add-form'); $this->assertInstanceOf(LinkRelationType::class, $add_form); diff --git a/core/tests/Drupal/KernelTests/Core/Lock/LockTest.php b/core/tests/Drupal/KernelTests/Core/Lock/LockTest.php index db50bd91926c387e8f5a07a45019423083ed46c7..24bd451fcc049657fa45a2db11a671188644c383 100644 --- a/core/tests/Drupal/KernelTests/Core/Lock/LockTest.php +++ b/core/tests/Drupal/KernelTests/Core/Lock/LockTest.php @@ -48,7 +48,7 @@ public function testBackendLockRelease() { $this->lock->release('lock_b'); - // Test acquiring an releasing a lock with a long key (over 255 chars). + // Test acquiring and releasing a lock with a long key (over 255 chars). $long_key = 'long_key:BZoMiSf9IIPULsJ98po18TxJ6T4usd3MZrLE0d3qMgG6iAgDlOi1G3oMap7zI5df84l7LtJBg4bOj6XvpO6vDRmP5h5QbA0Bj9rVFiPIPAIQZ9qFvJqTALiK1OR3GpOkWQ4vgEA4LkY0UfznrWBeuK7IWZfv1um6DLosnVXd1z1cJjvbEUqYGJj92rwHfhYihLm8IO9t3P2gAvEkH5Mhc8GBoiTsIDnP01Te1kxGFHO3RuvJIxPnHmZtSdBggmuVN7x9'; $success = $this->lock->acquire($long_key); diff --git a/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php b/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php index 27351fe5c5f509830e5faac7e127b2d6768370c0..7a5ed59072e6ff8a25da634ba781b184a9b2b9be 100644 --- a/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php +++ b/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php @@ -100,7 +100,7 @@ protected function tearDown(TestDatabase $test_database, $db_url): void { * test site can be torn down even if something in the test site is broken. * * @param string $path - * A string containing either an URI or a file or directory path. + * A string containing either a URI or a file or directory path. * @param callable $callback * (optional) Callback function to run on each file prior to deleting it and * on each directory prior to traversing it. For example, can be used to diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php index cde8dacad80fd955dc4aa1e80596a1e2560de143..ea8b44cc7499c666f8837fc9d740e738d1b5a771 100644 --- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php +++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php @@ -668,7 +668,7 @@ public function providerTestDateDiff() { 'expected' => $positive_19_hours, ], // In 1970 Sydney did not observe daylight savings time - // So there is only a 18 hour time interval. + // So there is only an 18 hour time interval. [ 'input2' => DateTimePlus::createFromFormat('Y-m-d H:i:s', '1970-01-01 00:00:00', new \DateTimeZone('Australia/Sydney')), 'input1' => DateTimePlus::createFromFormat('Y-m-d H:i:s', '1970-01-01 00:00:00', new \DateTimeZone('America/Los_Angeles')), diff --git a/core/tests/Drupal/Tests/Core/Command/QuickStartTest.php b/core/tests/Drupal/Tests/Core/Command/QuickStartTest.php index 89612cc8ea65ab9ad155a676be68d542b4df0b3e..ecd2a1a63695287c6d87db79f36c07ef88cdaee6 100644 --- a/core/tests/Drupal/Tests/Core/Command/QuickStartTest.php +++ b/core/tests/Drupal/Tests/Core/Command/QuickStartTest.php @@ -298,7 +298,7 @@ public function testServerWithNoInstall() { * test site can be torn down even if something in the test site is broken. * * @param string $path - * A string containing either an URI or a file or directory path. + * A string containing either a URI or a file or directory path. * @param callable $callback * (optional) Callback function to run on each file prior to deleting it and * on each directory prior to traversing it. For example, can be used to diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php index 83b53af1ecafad061d8f02ae9cd9b857910298d8..3f73187a77c7960da493f2529c60f5ada8c23e10 100644 --- a/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php +++ b/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php @@ -61,7 +61,7 @@ public function providerTestGetKeys() { $this->getConfigObject('test')->set('uuid', 'abc'), ]; - // Tests a existent sub key. + // Tests an existent sub key. $tests[] = [ ['uuid.blah:abc'], 'uuid.blah', diff --git a/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php b/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php index 2809db08b936a049ce4f6c4c530738d6c83943f6..03f75cca2f5a64f99acc6ab8f278dca53a077056 100644 --- a/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php +++ b/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php @@ -85,7 +85,7 @@ public function providerTestDateDiff() { 'expected' => $positive_19_hours, ], // In 1970 Sydney did not observe daylight savings time - // So there is only a 18 hour time interval. + // So there is only an 18 hour time interval. [ 'input2' => DrupalDateTime::createFromFormat('Y-m-d H:i:s', '1970-01-01 00:00:00', new \DateTimeZone('Australia/Sydney'), $settings), 'input1' => DrupalDateTime::createFromFormat('Y-m-d H:i:s', '1970-01-01 00:00:00', new \DateTimeZone('America/Los_Angeles'), $settings), diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php index 98cd6b8a89d0c65cb1d7e5eac28b9c6829c31f76..4def2202b4d02f433e699b59fe2298dbda817261 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php @@ -266,7 +266,7 @@ public function testSetRouteOptionsWithEntityUpcastingNoCreate() { } /** - * Tests setRouteOptions() with an form parameter without interface. + * Tests setRouteOptions() with a form parameter without interface. * * @covers ::setRouteOptions * @covers ::getControllerClass diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php index 97b16de0f183f5078b9ddeb19f4409d9087d0698..80e903a27a8ca3a3393b07945a768a08af3ce6ec 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php @@ -317,7 +317,7 @@ public function testGetFieldColumnNameInvalid($base_field, $columns, $column) { * Provides test data for testGetFieldColumnName(). * * @return array[] - * An nested array where each inner array has the following values: test + * A nested array where each inner array has the following values: test * field name, base field status, list of field columns, name of the column * to be retrieved, expected result, whether an exception is expected. */ diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php index 2b578fac918b1a939976f4ff73993603846affb6..e63dc51af9b57c13a372902030814a0874ed49b2 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php @@ -168,7 +168,7 @@ public function testGetBaseTable($base_table, $expected) { * Provides test data for testGetBaseTable(). * * @return array[] - * An nested array where each inner array has the base table to be returned + * A nested array where each inner array has the base table to be returned * by the mocked entity type as the first value and the expected return * value of SqlContentEntityStorage::getBaseTable() as the second * value. @@ -216,7 +216,7 @@ public function testGetRevisionTable($revision_table, $expected) { * Provides test data for testGetRevisionTable(). * * @return array[] - * An nested array where each inner array has the revision table to be + * A nested array where each inner array has the revision table to be * returned by the mocked entity type as the first value and the expected * return value of SqlContentEntityStorage::getRevisionTable() as the * second value. @@ -294,7 +294,7 @@ public function testGetRevisionDataTable($revision_data_table, $expected) { * Provides test data for testGetRevisionDataTable(). * * @return array[] - * An nested array where each inner array has the revision data table to be + * A nested array where each inner array has the revision data table to be * returned by the mocked entity type as the first value and the expected * return value of SqlContentEntityStorage::getRevisionDataTable() as * the second value. diff --git a/core/tests/Drupal/Tests/Core/Form/FormStateTest.php b/core/tests/Drupal/Tests/Core/Form/FormStateTest.php index 0a5e627a19fba60785cdc489e123e03a10d41fb0..0a222ccaabcf25c72960294014c94842515eab01 100644 --- a/core/tests/Drupal/Tests/Core/Form/FormStateTest.php +++ b/core/tests/Drupal/Tests/Core/Form/FormStateTest.php @@ -120,7 +120,7 @@ public function providerTestSetErrorByName() { return [ // Only validate the 'options' element. [[['options']], ['options' => '']], - // Do not limit an validation, and, ensuring the first error is returned + // Do not limit a validation, ensure the first error is returned // for the 'test' element. [NULL, ['test' => 'Fail 1', 'options' => '']], // Limit all validation. diff --git a/core/tests/Drupal/Tests/UiHelperTrait.php b/core/tests/Drupal/Tests/UiHelperTrait.php index ae20321026dcca7b478a8c6b2a2157c9edaf13d7..5111d36fe7436e70ebe9e0b7979c2acd1c9ffd61 100644 --- a/core/tests/Drupal/Tests/UiHelperTrait.php +++ b/core/tests/Drupal/Tests/UiHelperTrait.php @@ -352,7 +352,7 @@ protected function drupalGet($path, array $options = [], array $headers = []) { } /** - * Builds an a absolute URL from a system path or a URL object. + * Builds an absolute URL from a system path or a URL object. * * @param string|\Drupal\Core\Url $path * A system path or a URL. diff --git a/core/themes/stable/templates/admin/admin-page.html.twig b/core/themes/stable/templates/admin/admin-page.html.twig index 106876f730a9a0446746ec42de2a6c7812198a09..ea69e997a13e5ee3747eda513d9a07a24cac44ac 100644 --- a/core/themes/stable/templates/admin/admin-page.html.twig +++ b/core/themes/stable/templates/admin/admin-page.html.twig @@ -5,7 +5,7 @@ * * Available variables: * - system_compact_link: Themed link to toggle compact view. - * - containers: An list of administrative blocks keyed by position: left or + * - containers: A list of administrative blocks keyed by position: left or * right. Contains: * - blocks: A list of blocks within a container. *