Commit a60a5779 authored by alexpott's avatar alexpott
Browse files

Issue #2417983 by kattekrab: Change docs instances of "the the" to "the"

parent a160367c
......@@ -150,7 +150,7 @@ public function addConstraint($constraint_name, $options = NULL);
* Returns a validation constraint.
*
* @param string $constraint_name
* The name of the the constraint, i.e. its plugin id.
* The name of the constraint, i.e. its plugin id.
*
* @return array
* A validation constraint definition which can be used for instantiating a
......
......@@ -51,7 +51,7 @@ class Random {
* (optional) If TRUE ensures that the random string returned is unique.
* Defaults to FALSE.
* @param callable $validator
* (optional) A callable to validate the the string. Defaults to NULL.
* (optional) A callable to validate the string. Defaults to NULL.
*
* @return string
* Randomly generated string.
......
......@@ -1121,7 +1121,7 @@ protected function mapToStorageRecord(ContentEntityInterface $entity, $table_nam
* The schema name of the field column.
*
* @return bool
* TRUE if the the column is serial, FALSE otherwise.
* TRUE if the column is serial, FALSE otherwise.
*
* @see \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processBaseTable()
* @see \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processRevisionTable()
......
......@@ -25,7 +25,7 @@ interface ExecutableManagerInterface extends PluginManagerInterface {
*
* @return mixed
* The returned data varies by plugin implementation, e.g. conditions return
* the the boolean evaluation result.
* the boolean evaluation result.
*/
public function execute(ExecutableInterface $plugin);
......
......@@ -282,7 +282,7 @@ public function getConstraints();
* details.
*
* @param string $constraint_name
* The name of the the constraint, i.e. its plugin id.
* The name of the constraint, i.e. its plugin id.
*
* @return array
* A validation constraint definition which can be used for instantiating a
......
......@@ -383,7 +383,7 @@ public function flagErrors(FieldItemListInterface $items, ConstraintViolationLis
if ($violations->count()) {
$form_builder = \Drupal::formBuilder();
// Locate the correct element in the the form.
// Locate the correct element in the form.
$element = NestedArray::getValue($form_state->getCompleteForm(), $field_state['array_parents']);
// Do not report entity-level validation errors if Form API errors have
......
......@@ -75,7 +75,7 @@ public function doSubmitForm(&$form, FormStateInterface &$form_state) {
// after the batch is processed.
}
// Set a flag to indicate the the form has been processed and executed.
// Set a flag to indicate the form has been processed and executed.
$form_state->setExecuted();
// If no response has been set, process the form redirect.
......
......@@ -194,7 +194,7 @@ public function renderPlain(&$elements);
* - If this element has #prefix and/or #suffix defined, they are
* concatenated to #children.
* - The rendering of this element is now complete. The next step will be
* render caching. So this is the perfect time to update the the stack. At
* render caching. So this is the perfect time to update the stack. At
* this point, children of this element (if any), have been rendered also,
* and if there were any, their bubbleable rendering metadata will have
* been bubbled up into the stack frame for the element that is currently
......
......@@ -117,7 +117,7 @@ public function dump(array $options = array()) {
$compiled = $route->compile();
// The fit value is a binary number which has 1 at every fixed path
// position and 0 where there is a wildcard. We keep track of all such
// patterns that exist so that we can minimize the the number of path
// patterns that exist so that we can minimize the number of path
// patterns we need to check in the RouteProvider.
$masks[$compiled->getFit()] = 1;
$names[] = $name;
......
......@@ -95,7 +95,7 @@ public static function getFit($path) {
$slashes = $number_parts - 1;
// The fit value is a binary number which has 1 at every fixed path
// position and 0 where there is a wildcard. We keep track of all such
// patterns that exist so that we can minimize the the number of path
// patterns that exist so that we can minimize the number of path
// patterns we need to check in the RouteProvider.
$fit = 0;
foreach ($parts as $k => $part) {
......
......@@ -193,7 +193,7 @@ public function getConstraints();
* details.
*
* @param string $constraint_name
* The name of the the constraint, i.e. its plugin id.
* The name of the constraint, i.e. its plugin id.
*
* @return array
* A validation constraint definition which can be used for instantiating a
......
......@@ -274,7 +274,7 @@ public function getPropertyInstance(TypedDataInterface $object, $property_name,
// Root data type and settings.
$parts[] = $root_definition->getDataType();
if ($settings = $root_definition->getSettings()) {
// Hash the settings into a string. crc32 is the the fastest way to hash
// Hash the settings into a string. crc32 is the fastest way to hash
// something for non-cryptographic purposes.
$parts[] = crc32(serialize($settings));
}
......
......@@ -67,7 +67,7 @@
};
Drupal.tableSelectRange = function (from, to, state) {
// We determine the looping mode based on the the order of from and to.
// We determine the looping mode based on the order of from and to.
var mode = from.rowIndex > to.rowIndex ? 'previousSibling' : 'nextSibling';
// Traverse through the sibling nodes.
......
......@@ -289,7 +289,7 @@ function hook_field_purge_field_storage(\Drupal\field\Entity\FieldStorageConfig
* Acts when a field is being purged.
*
* In field_purge_field(), after the field definition has been removed
* from the the system, the entity storage has purged stored field data, and the
* from the system, the entity storage has purged stored field data, and the
* field info cache has been cleared, this hook is invoked on all modules to
* allow them to respond to the field being purged.
*
......
......@@ -39,7 +39,7 @@ function testImportChange() {
$staging = $this->container->get('config.storage.staging');
$this->copyConfig($active, $staging);
// Save as files in the the staging directory.
// Save as files in the staging directory.
$field = $active->read($field_config_name);
$new_label = 'Test update import field';
$field['label'] = $new_label;
......
......@@ -829,7 +829,7 @@ function file_save_upload($form_field_name, $validators = array(), $destination
continue;
}
// Add in our check of the the file name length.
// Add in our check of the file name length.
$validators['file_validate_name_length'] = array();
// Call the validation functions specified by this function's caller.
......
......@@ -537,8 +537,8 @@ public function getCustomOverwritePoFile() {
* Helper function that returns a .po file with context.
*/
public function getPoFileWithContext() {
// Croatian (code hr) is one the the languages that have a different
// form for the full name and the abbreviated name for the month May.
// Croatian (code hr) is one of the languages that have a different
// form for the full name and the abbreviated name for the month of May.
return <<< EOF
msgid ""
msgstr ""
......
......@@ -12,7 +12,7 @@
*
* This class represents a translation of a source string to a given language,
* thus it must have at least a 'language' which is the language code and a
* 'translation' property which is the translated text of the the source string
* 'translation' property which is the translated text of the source string
* in the specified language.
*/
class TranslationString extends StringBase {
......
......@@ -49,7 +49,7 @@ public function testImportChange() {
$node_type = $active->read($node_type_config_name);
$new_label = 'Test update import field';
$node_type['name'] = $new_label;
// Save as files in the the staging directory.
// Save as files in the staging directory.
$staging->write($node_type_config_name, $node_type);
// Import the content of the staging directory.
......
......@@ -264,7 +264,7 @@ function theme_responsive_image($variables) {
* @param array $variables
* An associative array containing:
* - media: The media query to use.
* - srcset: The srcset containing the the path of the image file or a full
* - srcset: The srcset containing the path of the image file or a full
* URL and optionally multipliers.
* - src: Either the path of the image file (relative to base_path()) or a
* full URL.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment