Commit a60a5779 authored by alexpott's avatar alexpott

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.
......
......@@ -422,7 +422,7 @@ public static function setLinkActiveClass(array $element, array $context) {
}
}
// Only if the the path, the language and the query match, we set the
// Only if the path, the language and the query match, we set the
// "active" class.
if ($add_active) {
if (strlen($class) > 0) {
......
......@@ -77,7 +77,7 @@ function testAjaxCommands() {
$this->assertCommand($commands, $expected->render(), "'changed' AJAX command (with asterisk) issued with correct selector.");
// Tests the 'css' command.
$commands = $this->drupalPostAjaxForm($form_path, $edit, array('op' => t("Set the the '#box' div to be blue.")));
$commands = $this->drupalPostAjaxForm($form_path, $edit, array('op' => t("Set the '#box' div to be blue.")));
$expected = new CssCommand('#css_div', array('background-color' => 'blue'));
$this->assertCommand($commands, $expected->render(), "'css' AJAX command issued with correct selector.");
......
......@@ -75,7 +75,7 @@ function testConnectionClosing() {
// Open the default target so we have an object to compare.
$db1 = Database::getConnection('default', 'default');
// Try to close the the default connection, then open a new one.
// Try to close the default connection, then open a new one.
Database::closeConnection('default', 'default');
$db2 = Database::getConnection('default', 'default');
......
......@@ -557,7 +557,7 @@ public function testReferencedEntity() {
}
// Verify that after deleting the entity, there is a cache miss for every
// route except for the the non-referencing entity one.
// route except for the non-referencing entity one.
$this->pass('Test deletion of referenced entity.', 'Debug');
$this->entity->delete();
$this->verifyPageCache($referencing_entity_url, 'MISS');
......
......@@ -75,7 +75,7 @@ function testTableselectColSpan() {
$table_body = $this->xpath('//tbody');
// The first two body rows should each have 5 table cells: One for the
// radio, one cell in the first column, one cell in the the second column,
// radio, one cell in the first column, one cell in the second column,
// and two cells in the third column which has colspan 2.
for ( $i = 0; $i <= 1; $i++) {
$this->assertEqual(count($table_body[0]->tr[$i]->td), 5, format_string('There are five cells in row @row.', array('@row' => $i)));
......
......@@ -13,7 +13,7 @@
use Drupal\simpletest\KernelTestBase;
/**
* Tests garbage collection for the the expirable key-value database storage.
* Tests garbage collection for the expirable key-value database storage.
*
* @group KeyValueStore
*/
......
......@@ -88,7 +88,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
// Shows the Ajax 'css' command.
$form['css_command_example'] = array(
'#value' => $this->t("Set the the '#box' div to be blue."),
'#value' => $this->t("Set the '#box' div to be blue."),
'#type' => 'submit',
'#ajax' => array(
'callback' => 'ajax_forms_test_advanced_commands_css_callback',
......
......@@ -50,7 +50,7 @@ public static function create(ContainerInterface $container) {
* @param \Symfony\Component\HttpFoundation\Request $request
* The current request object containing the search string.
* @param bool $include_anonymous
* (optional) TRUE if the the name used to indicate anonymous users (e.g.
* (optional) TRUE if the name used to indicate anonymous users (e.g.
* "Anonymous") should be autocompleted. Defaults to FALSE.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
......
......@@ -65,7 +65,7 @@ function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBac
* session if no user is logged in.
*
* @return \Drupal\user\TempStore
* An instance of the the key/value store.
* An instance of the key/value store.
*/
function get($collection, $owner = NULL) {
// Use the currently authenticated user ID or the active user ID unless
......
......@@ -61,7 +61,7 @@ public function __construct(ConfigFactoryInterface $config_factory, EntityManage
* The string to match for usernames.
*
* @param bool $include_anonymous
* (optional) TRUE if the the name used to indicate anonymous users (e.g.
* (optional) TRUE if the name used to indicate anonymous users (e.g.
* "Anonymous") should be autocompleted. Defaults to FALSE.
*
* @return array
......
......@@ -59,7 +59,7 @@ public function testDisplayPlugin() {
$this->assertTrue(isset($displays['display_test_1']), 'Added display has been assigned to "display_test_1"');
// Check the the display options are like expected.
// Check the display options are like expected.
$options = array(
'display_options' => array(),
'display_plugin' => 'display_test',
......
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