Issue #3389282 by quietone, smustgrave, alexpott: Fix spelling for words that are only misspelled in comments
parent
ea3f7b53d4
commit
6118e0dc37
|
@ -78,8 +78,8 @@
|
||||||
* @code
|
* @code
|
||||||
* $databases['default']['default'] = [
|
* $databases['default']['default'] = [
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'port' => '3306',
|
* 'port' => '3306',
|
||||||
* 'driver' => 'mysql',
|
* 'driver' => 'mysql',
|
||||||
|
@ -194,8 +194,8 @@ $databases = [];
|
||||||
* $databases['default']['default'] = [
|
* $databases['default']['default'] = [
|
||||||
* 'driver' => 'pgsql',
|
* 'driver' => 'pgsql',
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'prefix' => '',
|
* 'prefix' => '',
|
||||||
* ];
|
* ];
|
||||||
|
@ -205,7 +205,7 @@ $databases = [];
|
||||||
* @code
|
* @code
|
||||||
* $databases['default']['default'] = [
|
* $databases['default']['default'] = [
|
||||||
* 'driver' => 'sqlite',
|
* 'driver' => 'sqlite',
|
||||||
* 'database' => '/path/to/databasefilename',
|
* 'database' => '/path/to/database_filename',
|
||||||
* ];
|
* ];
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
|
@ -216,8 +216,8 @@ $databases = [];
|
||||||
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
||||||
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'prefix' => '',
|
* 'prefix' => '',
|
||||||
* ];
|
* ];
|
||||||
|
@ -231,8 +231,8 @@ $databases = [];
|
||||||
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
||||||
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'prefix' => '',
|
* 'prefix' => '',
|
||||||
* 'dependencies' => [
|
* 'dependencies' => [
|
||||||
|
@ -588,7 +588,7 @@ $settings['update_free_access'] = FALSE;
|
||||||
* the output of phpinfo(). The full output can contain sensitive information
|
* the output of phpinfo(). The full output can contain sensitive information
|
||||||
* so by default Drupal removes some sections.
|
* so by default Drupal removes some sections.
|
||||||
*
|
*
|
||||||
* This behaviour can be configured by setting this variable to a different
|
* This behavior can be configured by setting this variable to a different
|
||||||
* value corresponding to the flags parameter of phpinfo().
|
* value corresponding to the flags parameter of phpinfo().
|
||||||
*
|
*
|
||||||
* If you need to expose more information in the report - for example to debug a
|
* If you need to expose more information in the report - for example to debug a
|
||||||
|
|
|
@ -294,7 +294,7 @@ EOD;
|
||||||
* string "See MyVeryLongURLExample.com for more information" to a word-safe
|
* string "See MyVeryLongURLExample.com for more information" to a word-safe
|
||||||
* return length of 20, the only available word boundary within 20 characters
|
* return length of 20, the only available word boundary within 20 characters
|
||||||
* is after the word "See", which wouldn't leave a very informative string. If
|
* is after the word "See", which wouldn't leave a very informative string. If
|
||||||
* you had set $min_wordsafe_length to 10, though, the function would realise
|
* you had set $min_wordsafe_length to 10, though, the function would realize
|
||||||
* that "See" alone is too short, and would then just truncate ignoring word
|
* that "See" alone is too short, and would then just truncate ignoring word
|
||||||
* boundaries, giving you "See MyVeryLongURL..." (assuming you had set
|
* boundaries, giving you "See MyVeryLongURL..." (assuming you had set
|
||||||
* $add_ellipsis to TRUE).
|
* $add_ellipsis to TRUE).
|
||||||
|
|
|
@ -259,14 +259,14 @@ interface QueryInterface extends AlterableInterface {
|
||||||
*
|
*
|
||||||
* For example, consider a map entity with an 'attributes' field
|
* For example, consider a map entity with an 'attributes' field
|
||||||
* containing 'building_type' and 'color' columns. To find all green and
|
* containing 'building_type' and 'color' columns. To find all green and
|
||||||
* red bikesheds:
|
* red sheds:
|
||||||
* @code
|
* @code
|
||||||
* $query = \Drupal::entityQuery('map')->accessCheck(FALSE);
|
* $query = \Drupal::entityQuery('map')->accessCheck(FALSE);
|
||||||
* $group = $query->orConditionGroup()
|
* $group = $query->orConditionGroup()
|
||||||
* ->condition('attributes.color', 'red')
|
* ->condition('attributes.color', 'red')
|
||||||
* ->condition('attributes.color', 'green');
|
* ->condition('attributes.color', 'green');
|
||||||
* $entity_ids = $query
|
* $entity_ids = $query
|
||||||
* ->condition('attributes.building_type', 'bikeshed')
|
* ->condition('attributes.building_type', 'shed')
|
||||||
* ->condition($group)
|
* ->condition($group)
|
||||||
* ->execute();
|
* ->execute();
|
||||||
* @endcode
|
* @endcode
|
||||||
|
@ -274,7 +274,7 @@ interface QueryInterface extends AlterableInterface {
|
||||||
* @code
|
* @code
|
||||||
* $entity_ids = $query
|
* $entity_ids = $query
|
||||||
* ->condition('attributes.color', ['red', 'green'])
|
* ->condition('attributes.color', ['red', 'green'])
|
||||||
* ->condition('attributes.building_type', 'bikeshed')
|
* ->condition('attributes.building_type', 'shed')
|
||||||
* ->execute();
|
* ->execute();
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
|
|
|
@ -60,7 +60,7 @@ class PasswordItem extends StringItem {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that the existing password is unset to minimise risks of it
|
// Ensure that the existing password is unset to minimize risks of it
|
||||||
// getting serialized and stored somewhere.
|
// getting serialized and stored somewhere.
|
||||||
$this->existing = NULL;
|
$this->existing = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace Drupal\Core\PathProcessor;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Processes the inbound path by urldecoding it.
|
* Processes the inbound path by decoding the URL.
|
||||||
*
|
*
|
||||||
* Parameters in the URL sometimes represent code-meaningful strings. It is
|
* Parameters in the URL sometimes represent code-meaningful strings. It is
|
||||||
* therefore useful to always urldecode() those values so that individual
|
* therefore useful to always urldecode() those values so that individual
|
||||||
|
|
|
@ -22,8 +22,6 @@ alternatif
|
||||||
amet
|
amet
|
||||||
amphibius
|
amphibius
|
||||||
ampm
|
ampm
|
||||||
analyse
|
|
||||||
analysed
|
|
||||||
andif
|
andif
|
||||||
annot
|
annot
|
||||||
anonyme
|
anonyme
|
||||||
|
@ -107,8 +105,6 @@ bgblue
|
||||||
bgred
|
bgred
|
||||||
bidi
|
bidi
|
||||||
bigpipe
|
bigpipe
|
||||||
bikeshed
|
|
||||||
bikesheds
|
|
||||||
bitmask
|
bitmask
|
||||||
bkmgtpezy
|
bkmgtpezy
|
||||||
bkslshv
|
bkslshv
|
||||||
|
@ -254,10 +250,8 @@ customly
|
||||||
customrequest
|
customrequest
|
||||||
cweagans
|
cweagans
|
||||||
cádiz
|
cádiz
|
||||||
databasefilename
|
|
||||||
databasename
|
databasename
|
||||||
datas
|
datas
|
||||||
dateformatter
|
|
||||||
datelist
|
datelist
|
||||||
dateonly
|
dateonly
|
||||||
daterange
|
daterange
|
||||||
|
@ -286,7 +280,6 @@ denormalizer
|
||||||
denormalizers
|
denormalizers
|
||||||
denormalizes
|
denormalizes
|
||||||
denormalizing
|
denormalizing
|
||||||
denyall
|
|
||||||
depcn
|
depcn
|
||||||
dependee
|
dependee
|
||||||
dependee's
|
dependee's
|
||||||
|
@ -464,7 +457,6 @@ gnumeric
|
||||||
goldfinger
|
goldfinger
|
||||||
googleapis
|
googleapis
|
||||||
gotit
|
gotit
|
||||||
grandgrandchild
|
|
||||||
grayskull
|
grayskull
|
||||||
greeking
|
greeking
|
||||||
gripsmall
|
gripsmall
|
||||||
|
@ -644,7 +636,6 @@ mikey
|
||||||
milli
|
milli
|
||||||
mimetypes
|
mimetypes
|
||||||
minifyzombies
|
minifyzombies
|
||||||
minimise
|
|
||||||
minipager
|
minipager
|
||||||
minusthick
|
minusthick
|
||||||
missingkey
|
missingkey
|
||||||
|
@ -885,7 +876,6 @@ rasterizes
|
||||||
rawurlencoded
|
rawurlencoded
|
||||||
readmore
|
readmore
|
||||||
readonlydir
|
readonlydir
|
||||||
realise
|
|
||||||
realpaths
|
realpaths
|
||||||
realword
|
realword
|
||||||
rebuilder
|
rebuilder
|
||||||
|
@ -922,7 +912,6 @@ restriped
|
||||||
restui
|
restui
|
||||||
rethrown
|
rethrown
|
||||||
returntransfer
|
returntransfer
|
||||||
revisionability
|
|
||||||
revisionable
|
revisionable
|
||||||
revisioned
|
revisioned
|
||||||
revisionid
|
revisionid
|
||||||
|
@ -953,7 +942,6 @@ schemaapi
|
||||||
schemeless
|
schemeless
|
||||||
schipulcon
|
schipulcon
|
||||||
scorewords
|
scorewords
|
||||||
screenreaders
|
|
||||||
scriptable
|
scriptable
|
||||||
scrollbars
|
scrollbars
|
||||||
searchdirs
|
searchdirs
|
||||||
|
@ -996,8 +984,6 @@ spiffiness
|
||||||
splitbutton
|
splitbutton
|
||||||
splitbuttons
|
splitbuttons
|
||||||
spreadsheetml
|
spreadsheetml
|
||||||
sqlpassword
|
|
||||||
sqlusername
|
|
||||||
squaresmall
|
squaresmall
|
||||||
squiz
|
squiz
|
||||||
squizlabs
|
squizlabs
|
||||||
|
@ -1050,7 +1036,6 @@ subrequest's
|
||||||
subrequests
|
subrequests
|
||||||
subresults
|
subresults
|
||||||
subselect
|
subselect
|
||||||
subsequentially
|
|
||||||
subshell
|
subshell
|
||||||
substrategies
|
substrategies
|
||||||
subsubtheme
|
subsubtheme
|
||||||
|
@ -1255,7 +1240,6 @@ unshortened
|
||||||
unsimplified
|
unsimplified
|
||||||
unsticky
|
unsticky
|
||||||
unstripped
|
unstripped
|
||||||
unsynchronized
|
|
||||||
untabbable
|
untabbable
|
||||||
untarring
|
untarring
|
||||||
untrustable
|
untrustable
|
||||||
|
@ -1272,7 +1256,6 @@ uppercased
|
||||||
upscaling
|
upscaling
|
||||||
urandom
|
urandom
|
||||||
urlalias
|
urlalias
|
||||||
urldecoding
|
|
||||||
usecase
|
usecase
|
||||||
userid
|
userid
|
||||||
userinfo
|
userinfo
|
||||||
|
|
|
@ -251,7 +251,7 @@
|
||||||
* To ensure they have higher specificity and are not reset too aggressively.
|
* To ensure they have higher specificity and are not reset too aggressively.
|
||||||
*
|
*
|
||||||
* @param {CSSRule} rule
|
* @param {CSSRule} rule
|
||||||
* A single CSS rule to be analysed and changed if necessary.
|
* A single CSS rule to be analyzed and changed if necessary.
|
||||||
*/
|
*/
|
||||||
function ckeditor5SelectorProcessing(rule) {
|
function ckeditor5SelectorProcessing(rule) {
|
||||||
// Handle nested rules in @media, @support, etc.
|
// Handle nested rules in @media, @support, etc.
|
||||||
|
|
|
@ -252,7 +252,7 @@ class ContentTranslationSyncUnitTest extends KernelTestBase {
|
||||||
for ($delta = 0; $delta < $this->cardinality; $delta++) {
|
for ($delta = 0; $delta < $this->cardinality; $delta++) {
|
||||||
foreach ($this->columns as $column) {
|
foreach ($this->columns as $column) {
|
||||||
// If the column is synchronized, the value should have been synced,
|
// If the column is synchronized, the value should have been synced,
|
||||||
// for unsynchronized columns, the value must not change.
|
// for columns that are not synchronized, the value must not change.
|
||||||
$expected_value = in_array($column, $this->synchronized) ? $changed_items[$delta][$column] : $this->unchangedFieldValues[$langcode][$delta][$column];
|
$expected_value = in_array($column, $this->synchronized) ? $changed_items[$delta][$column] : $this->unchangedFieldValues[$langcode][$delta][$column];
|
||||||
$this->assertEquals($expected_value, $field_values[$langcode][$delta][$column], "Differing Item {$delta} column {$column} for langcode {$langcode} synced correctly");
|
$this->assertEquals($expected_value, $field_values[$langcode][$delta][$column], "Differing Item {$delta} column {$column} for langcode {$langcode} synced correctly");
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ class FieldOptionTranslation extends Field {
|
||||||
$query->leftJoin('content_node_field', 'cnf', '[cnf].[field_name] = [i18n].[objectid]');
|
$query->leftJoin('content_node_field', 'cnf', '[cnf].[field_name] = [i18n].[objectid]');
|
||||||
$query->addField('cnf', 'field_name');
|
$query->addField('cnf', 'field_name');
|
||||||
$query->addField('cnf', 'global_settings');
|
$query->addField('cnf', 'global_settings');
|
||||||
// Minimise changes to the d6_field_option_translation.yml, which is copied
|
// Minimize changes to the d6_field_option_translation.yml, which is copied
|
||||||
// from d6_field.yml, by ensuring the 'type' property is from
|
// from d6_field.yml, by ensuring the 'type' property is from
|
||||||
// content_node_field table.
|
// content_node_field table.
|
||||||
$query->addField('cnf', 'type');
|
$query->addField('cnf', 'type');
|
||||||
|
|
|
@ -159,7 +159,7 @@ class ImageItemTest extends FieldKernelTestBase {
|
||||||
*/
|
*/
|
||||||
public function testImageItemSampleValueGeneration() {
|
public function testImageItemSampleValueGeneration() {
|
||||||
|
|
||||||
// Default behaviour. No resolution configuration.
|
// Default behavior. No resolution configuration.
|
||||||
$entity = EntityTest::create();
|
$entity = EntityTest::create();
|
||||||
$entity->image_test->generateSampleItems();
|
$entity->image_test->generateSampleItems();
|
||||||
$this->entityValidateAndSave($entity);
|
$this->entityValidateAndSave($entity);
|
||||||
|
|
|
@ -84,14 +84,14 @@ class LanguageSwitchingTest extends BrowserTestBase {
|
||||||
$this->doTestLanguageBlockAnonymous($block->label());
|
$this->doTestLanguageBlockAnonymous($block->label());
|
||||||
$this->doTestLanguageBlock404($block->label(), 'system/404');
|
$this->doTestLanguageBlock404($block->label(), 'system/404');
|
||||||
|
|
||||||
// Test 404s with big_pipe where the behaviour is different for logged-in
|
// Test 404s with big_pipe where the behavior is different for logged-in
|
||||||
// users.
|
// users.
|
||||||
\Drupal::service('module_installer')->install(['big_pipe']);
|
\Drupal::service('module_installer')->install(['big_pipe']);
|
||||||
$this->rebuildAll();
|
$this->rebuildAll();
|
||||||
$this->doTestLanguageBlock404($block->label(), 'system/404');
|
$this->doTestLanguageBlock404($block->label(), 'system/404');
|
||||||
$this->drupalLogin($this->drupalCreateUser());
|
$this->drupalLogin($this->drupalCreateUser());
|
||||||
// @todo This is testing the current behaviour with the big_pipe module
|
// @todo This is testing the current behavior with the big_pipe module
|
||||||
// enabled. This behaviour is a bug will be fixed in
|
// enabled. This behavior is a bug will be fixed in
|
||||||
// https://www.drupal.org/project/drupal/issues/3349201.
|
// https://www.drupal.org/project/drupal/issues/3349201.
|
||||||
$this->doTestLanguageBlock404($block->label(), '<front>');
|
$this->doTestLanguageBlock404($block->label(), '<front>');
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ use Drupal\user\Entity\Role;
|
||||||
use Drupal\user\RoleInterface;
|
use Drupal\user\RoleInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the revisionability of media entities.
|
* Tests the revisions of media entities.
|
||||||
*
|
*
|
||||||
* @group media
|
* @group media
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -57,7 +57,7 @@ abstract class AssetControllerBase extends FileDownloadController {
|
||||||
* for the file will be served from disk and be cached. This is done to
|
* for the file will be served from disk and be cached. This is done to
|
||||||
* avoid situations such as where one CDN endpoint is serving a version
|
* avoid situations such as where one CDN endpoint is serving a version
|
||||||
* cached from PHP, while another is serving a version cached from disk.
|
* cached from PHP, while another is serving a version cached from disk.
|
||||||
* Should there be any discrepancy in behaviour between those files, this
|
* Should there be any discrepancy in behavior between those files, this
|
||||||
* can make debugging very difficult.
|
* can make debugging very difficult.
|
||||||
*/
|
*/
|
||||||
protected const CACHE_CONTROL = 'private, no-store';
|
protected const CACHE_CONTROL = 'private, no-store';
|
||||||
|
|
|
@ -102,7 +102,7 @@ class SecurityFileUploadEventSubscriber implements EventSubscriberInterface {
|
||||||
|
|
||||||
// Munge the filename to protect against possible malicious extension hiding
|
// Munge the filename to protect against possible malicious extension hiding
|
||||||
// within an unknown file type (i.e. filename.html.foo). This was introduced
|
// within an unknown file type (i.e. filename.html.foo). This was introduced
|
||||||
// as part of SA-2006-006 to fix Apache's risky fallback behaviour.
|
// as part of SA-2006-006 to fix Apache's risky fallback behavior.
|
||||||
|
|
||||||
// Loop through the middle parts of the name and add an underscore to the
|
// Loop through the middle parts of the name and add an underscore to the
|
||||||
// end of each section that could be a file extension but isn't in the
|
// end of each section that could be a file extension but isn't in the
|
||||||
|
|
|
@ -197,7 +197,7 @@ final class LinksetControllerMultiLingualTest extends LinksetControllerTestBase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test core functions of the linkset for multilingual behaviour.
|
* Test core functions of the linkset for multilingual behavior.
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
|
@ -210,7 +210,7 @@ final class LinksetControllerMultiLingualTest extends LinksetControllerTestBase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test core functions of the linkset for multilingual behaviour.
|
* Test core functions of the linkset for multilingual behavior.
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -32,7 +32,7 @@ use Symfony\Component\Routing\Route;
|
||||||
* plugin should have an annotation that includes the plugin's metadata, for
|
* plugin should have an annotation that includes the plugin's metadata, for
|
||||||
* example:
|
* example:
|
||||||
* @Plugin(
|
* @Plugin(
|
||||||
* id = "denyall",
|
* id = "deny_all",
|
||||||
* title = @Translation("No Access"),
|
* title = @Translation("No Access"),
|
||||||
* help = @Translation("Will not be accessible.")
|
* help = @Translation("Will not be accessible.")
|
||||||
* )
|
* )
|
||||||
|
|
|
@ -42,7 +42,7 @@ class AnalyzeTest extends UITestBase {
|
||||||
$this->assertSession()->titleEquals('View analysis | Drupal');
|
$this->assertSession()->titleEquals('View analysis | Drupal');
|
||||||
|
|
||||||
foreach (['ok', 'warning', 'error'] as $type) {
|
foreach (['ok', 'warning', 'error'] as $type) {
|
||||||
// Check that analyse messages with the expected type found.
|
// Check that analyze messages with the expected type found.
|
||||||
$this->assertSession()->elementExists('css', 'div.' . $type);
|
$this->assertSession()->elementExists('css', 'div.' . $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
<!-- Deprecation testing is managed through Symfony's PHPUnit Bridge.
|
<!-- Deprecation testing is managed through Symfony's PHPUnit Bridge.
|
||||||
The environment variable SYMFONY_DEPRECATIONS_HELPER is used to configure
|
The environment variable SYMFONY_DEPRECATIONS_HELPER is used to configure
|
||||||
the behaviour of the deprecation tests.
|
the behavior of the deprecation tests.
|
||||||
See https://symfony.com/doc/current/components/phpunit_bridge.html#configuration
|
See https://symfony.com/doc/current/components/phpunit_bridge.html#configuration
|
||||||
Drupal core's testing framework is setting this variable to its defaults.
|
Drupal core's testing framework is setting this variable to its defaults.
|
||||||
Projects with their own requirements need to manage this variable
|
Projects with their own requirements need to manage this variable
|
||||||
|
|
|
@ -13,7 +13,7 @@ use PHPUnit\Framework\TestCase;
|
||||||
*
|
*
|
||||||
* Upgrading a Composer plugin can be a dangerous operation. If the plugin
|
* Upgrading a Composer plugin can be a dangerous operation. If the plugin
|
||||||
* instantiates any classes during the activate method, and the plugin code
|
* instantiates any classes during the activate method, and the plugin code
|
||||||
* is subsequentially modified by a `composer update` operation, then any
|
* is subsequently modified by a `composer update` operation, then any
|
||||||
* post-update hook (& etc.) may run with inconsistent code, leading to
|
* post-update hook (& etc.) may run with inconsistent code, leading to
|
||||||
* runtime errors. This test ensures that it is possible to upgrade from the
|
* runtime errors. This test ensures that it is possible to upgrade from the
|
||||||
* last available stable 8.8.x tag to the current Scaffold plugin code (e.g. in
|
* last available stable 8.8.x tag to the current Scaffold plugin code (e.g. in
|
||||||
|
|
|
@ -192,7 +192,7 @@ class DateTest extends UnitTestCase {
|
||||||
$timestamp = $this->createTimestamp('2013-12-11 10:09:09');
|
$timestamp = $this->createTimestamp('2013-12-11 10:09:09');
|
||||||
$options = [];
|
$options = [];
|
||||||
|
|
||||||
// Mocks the formatDiff function of the dateformatter object.
|
// Mocks the formatDiff function of the DateFormatter object.
|
||||||
$this->dateFormatterStub
|
$this->dateFormatterStub
|
||||||
->expects($this->exactly(2))
|
->expects($this->exactly(2))
|
||||||
->method('formatDiff')
|
->method('formatDiff')
|
||||||
|
@ -225,7 +225,7 @@ class DateTest extends UnitTestCase {
|
||||||
$request_time = $this->createTimestamp('2013-12-11 10:09:08');
|
$request_time = $this->createTimestamp('2013-12-11 10:09:08');
|
||||||
$options = [];
|
$options = [];
|
||||||
|
|
||||||
// Mocks the formatDiff function of the dateformatter object.
|
// Mocks the formatDiff function of the DateFormatter object.
|
||||||
$this->dateFormatterStub
|
$this->dateFormatterStub
|
||||||
->expects($this->exactly(2))
|
->expects($this->exactly(2))
|
||||||
->method('formatDiff')
|
->method('formatDiff')
|
||||||
|
|
|
@ -342,7 +342,7 @@ class RendererBubblingTest extends RendererTestBase {
|
||||||
// A lower max-age; the redirecting cache item should be updated.
|
// A lower max-age; the redirecting cache item should be updated.
|
||||||
'max-age' => 1800,
|
'max-age' => 1800,
|
||||||
],
|
],
|
||||||
'grandgrandchild' => [
|
'great grandchild' => [
|
||||||
'#access_callback' => function () use (&$current_user_role) {
|
'#access_callback' => function () use (&$current_user_role) {
|
||||||
// Only role C can access this subtree.
|
// Only role C can access this subtree.
|
||||||
return $current_user_role === 'C';
|
return $current_user_role === 'C';
|
||||||
|
@ -400,7 +400,7 @@ class RendererBubblingTest extends RendererTestBase {
|
||||||
'#markup' => 'parent',
|
'#markup' => 'parent',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Request 3: role C, both the grandchild and the grandgrandchild are
|
// Request 3: role C, both the grandchild and the great grandchild are
|
||||||
// accessible => bubbled cache contexts: foo, bar, user.roles + merged
|
// accessible => bubbled cache contexts: foo, bar, user.roles + merged
|
||||||
// max-age: 300.
|
// max-age: 300.
|
||||||
$element = $test_element;
|
$element = $test_element;
|
||||||
|
|
|
@ -458,7 +458,7 @@ function claro_form_alter(array &$form, FormStateInterface $form_state, $form_id
|
||||||
|
|
||||||
// Group the bulk actions select and submit elements, and add a label
|
// Group the bulk actions select and submit elements, and add a label
|
||||||
// that makes the purpose of these elements more clear to
|
// that makes the purpose of these elements more clear to
|
||||||
// screenreaders.
|
// screen readers.
|
||||||
$form['bulk_actions_container']['#attributes']['role'] = 'group';
|
$form['bulk_actions_container']['#attributes']['role'] = 'group';
|
||||||
$form['bulk_actions_container']['#attributes']['aria-labelledby'] = $label_id;
|
$form['bulk_actions_container']['#attributes']['aria-labelledby'] = $label_id;
|
||||||
$form['bulk_actions_container']['group_label'] = [
|
$form['bulk_actions_container']['group_label'] = [
|
||||||
|
@ -835,7 +835,7 @@ function claro_form_views_exposed_form_alter(&$form, FormStateInterface $form_st
|
||||||
$view = $form_state->getStorage()['view'];
|
$view = $form_state->getStorage()['view'];
|
||||||
$view_title = $view->getTitle();
|
$view_title = $view->getTitle();
|
||||||
|
|
||||||
// Add a label so screenreaders can identify the purpose of the exposed form
|
// Add a label so screen readers can identify the purpose of the exposed form
|
||||||
// without having to scan content that appears further down the page.
|
// without having to scan content that appears further down the page.
|
||||||
$form['#attributes']['aria-label'] = t('Filter the contents of the %view_title view', ['%view_title' => $view_title]);
|
$form['#attributes']['aria-label'] = t('Filter the contents of the %view_title view', ['%view_title' => $view_title]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,8 +78,8 @@
|
||||||
* @code
|
* @code
|
||||||
* $databases['default']['default'] = [
|
* $databases['default']['default'] = [
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'port' => '3306',
|
* 'port' => '3306',
|
||||||
* 'driver' => 'mysql',
|
* 'driver' => 'mysql',
|
||||||
|
@ -194,8 +194,8 @@ $databases = [];
|
||||||
* $databases['default']['default'] = [
|
* $databases['default']['default'] = [
|
||||||
* 'driver' => 'pgsql',
|
* 'driver' => 'pgsql',
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'prefix' => '',
|
* 'prefix' => '',
|
||||||
* ];
|
* ];
|
||||||
|
@ -205,7 +205,7 @@ $databases = [];
|
||||||
* @code
|
* @code
|
||||||
* $databases['default']['default'] = [
|
* $databases['default']['default'] = [
|
||||||
* 'driver' => 'sqlite',
|
* 'driver' => 'sqlite',
|
||||||
* 'database' => '/path/to/databasefilename',
|
* 'database' => '/path/to/database_filename',
|
||||||
* ];
|
* ];
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
|
@ -216,8 +216,8 @@ $databases = [];
|
||||||
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
||||||
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'prefix' => '',
|
* 'prefix' => '',
|
||||||
* ];
|
* ];
|
||||||
|
@ -231,8 +231,8 @@ $databases = [];
|
||||||
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
* 'namespace' => 'Drupal\my_module\Driver\Database\my_driver',
|
||||||
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
* 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/',
|
||||||
* 'database' => 'databasename',
|
* 'database' => 'databasename',
|
||||||
* 'username' => 'sqlusername',
|
* 'username' => 'sql_username',
|
||||||
* 'password' => 'sqlpassword',
|
* 'password' => 'sql_password',
|
||||||
* 'host' => 'localhost',
|
* 'host' => 'localhost',
|
||||||
* 'prefix' => '',
|
* 'prefix' => '',
|
||||||
* 'dependencies' => [
|
* 'dependencies' => [
|
||||||
|
@ -588,7 +588,7 @@ $settings['update_free_access'] = FALSE;
|
||||||
* the output of phpinfo(). The full output can contain sensitive information
|
* the output of phpinfo(). The full output can contain sensitive information
|
||||||
* so by default Drupal removes some sections.
|
* so by default Drupal removes some sections.
|
||||||
*
|
*
|
||||||
* This behaviour can be configured by setting this variable to a different
|
* This behavior can be configured by setting this variable to a different
|
||||||
* value corresponding to the flags parameter of phpinfo().
|
* value corresponding to the flags parameter of phpinfo().
|
||||||
*
|
*
|
||||||
* If you need to expose more information in the report - for example to debug a
|
* If you need to expose more information in the report - for example to debug a
|
||||||
|
|
Loading…
Reference in New Issue