Unverified Commit 6dfc00c0 authored by alexpott's avatar alexpott

Issue #2829185 by vaplas, Jo Fitzgerald, anmolgoyal74, chipway, gaurav.kapoor,...

Issue #2829185 by vaplas, Jo Fitzgerald, anmolgoyal74, chipway, gaurav.kapoor, mark_fullmer, amit.drupal, cilefen, longwave, xjm, wturrell, anavarre: Fix spelling errors in Drupal core comments

(cherry picked from commit 2dabd1de)
parent a8364dab
...@@ -125,7 +125,7 @@ function authorize_access_allowed(Request $request) { ...@@ -125,7 +125,7 @@ function authorize_access_allowed(Request $request) {
$links = $results['tasks']; $links = $results['tasks'];
} }
else { else {
// Since this is being called outsite of the primary front controller, // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are // the base_url needs to be set explicitly to ensure that links are
// relative to the site root. // relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095 // @todo Simplify with https://www.drupal.org/node/2548095
......
...@@ -229,7 +229,7 @@ public static function request() { ...@@ -229,7 +229,7 @@ public static function request() {
} }
/** /**
* Retrives the request stack. * Retrieves the request stack.
* *
* @return \Symfony\Component\HttpFoundation\RequestStack * @return \Symfony\Component\HttpFoundation\RequestStack
* The request stack * The request stack
......
...@@ -200,7 +200,7 @@ protected function resolveServicesAndParameters($arguments) { ...@@ -200,7 +200,7 @@ protected function resolveServicesAndParameters($arguments) {
// The PhpArrayDumper just uses the hash of the private service // The PhpArrayDumper just uses the hash of the private service
// definition to generate a unique ID. // definition to generate a unique ID.
// //
// @see \Drupal\Component\DependecyInjection\Dumper\OptimizedPhpArrayDumper::getPrivateServiceCall // @see \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getPrivateServiceCall
if ($type == 'private_service') { if ($type == 'private_service') {
$id = $argument->id; $id = $argument->id;
......
...@@ -394,7 +394,7 @@ private function readLine() { ...@@ -394,7 +394,7 @@ private function readLine() {
($this->context != 'MSGCTXT') && ($this->context != 'MSGCTXT') &&
($this->context != 'MSGID_PLURAL') && ($this->context != 'MSGID_PLURAL') &&
($this->context != 'MSGSTR_ARR')) { ($this->context != 'MSGSTR_ARR')) {
// Plural message strings must come after msgid, msgxtxt, // Plural message strings must come after msgid, msgctxt,
// msgid_plural, or other msgstr[] entries. // msgid_plural, or other msgstr[] entries.
$this->errors[] = new FormattableMarkup('The translation stream %uri contains an error: "msgstr[]" is unexpected on line %line.', $log_vars); $this->errors[] = new FormattableMarkup('The translation stream %uri contains an error: "msgstr[]" is unexpected on line %line.', $log_vars);
return FALSE; return FALSE;
......
...@@ -36,7 +36,7 @@ public static function createFromRedirectResponse(RedirectResponse $response) { ...@@ -36,7 +36,7 @@ public static function createFromRedirectResponse(RedirectResponse $response) {
* Copies over the values from the given response. * Copies over the values from the given response.
* *
* @param \Symfony\Component\HttpFoundation\RedirectResponse $response * @param \Symfony\Component\HttpFoundation\RedirectResponse $response
* The redirect reponse object. * The redirect response object.
*/ */
protected function fromResponse(RedirectResponse $response) { protected function fromResponse(RedirectResponse $response) {
$this->setProtocolVersion($response->getProtocolVersion()); $this->setProtocolVersion($response->getProtocolVersion());
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
* The following changes have been done: * The following changes have been done:
* Added namespace Drupal\Core\Archiver. * Added namespace Drupal\Core\Archiver.
* Removed require_once 'PEAR.php'. * Removed require_once 'PEAR.php'.
* Added defintion of OS_WINDOWS taken from PEAR.php. * Added definition of OS_WINDOWS taken from PEAR.php.
* Renamed class to ArchiveTar. * Renamed class to ArchiveTar.
* Removed extends PEAR from class. * Removed extends PEAR from class.
* Removed call parent:: __construct(). * Removed call parent:: __construct().
...@@ -181,7 +181,7 @@ public function __construct($p_tarname, $p_compress = null) ...@@ -181,7 +181,7 @@ public function __construct($p_tarname, $p_compress = null)
if ($data == "\37\213") { if ($data == "\37\213") {
$this->_compress = true; $this->_compress = true;
$this->_compress_type = 'gz'; $this->_compress_type = 'gz';
// No sure it's enought for a magic code .... // Not sure it's enough for a magic code ....
} elseif ($data == "BZ") { } elseif ($data == "BZ") {
$this->_compress = true; $this->_compress = true;
$this->_compress_type = 'bz2'; $this->_compress_type = 'bz2';
...@@ -2385,7 +2385,7 @@ public function _dirCheck($p_dir) ...@@ -2385,7 +2385,7 @@ public function _dirCheck($p_dir)
/** /**
* Compress path by changing for example "/dir/foo/../bar" to "/dir/bar", * Compress path by changing for example "/dir/foo/../bar" to "/dir/bar",
* rand emove double slashes. * and remove double slashes.
* *
* @param string $p_dir path to reduce * @param string $p_dir path to reduce
* *
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Drupal\Core\Cache\DatabaseBackend provides the default implementation, which * Drupal\Core\Cache\DatabaseBackend provides the default implementation, which
* can be consulted as an example. * can be consulted as an example.
* *
* The cache indentifiers are case sensitive. * The cache identifiers are case sensitive.
* *
* @ingroup cache * @ingroup cache
*/ */
......
...@@ -189,7 +189,7 @@ public function getDependencies(); ...@@ -189,7 +189,7 @@ public function getDependencies();
* For example, a default view might not be installable if the base table * For example, a default view might not be installable if the base table
* doesn't exist. * doesn't exist.
* *
* @retun bool * @return bool
* TRUE if the entity is installable, FALSE otherwise. * TRUE if the entity is installable, FALSE otherwise.
*/ */
public function isInstallable(); public function isInstallable();
......
...@@ -46,7 +46,7 @@ public function __construct($directory, $collection = StorageInterface::DEFAULT_ ...@@ -46,7 +46,7 @@ public function __construct($directory, $collection = StorageInterface::DEFAULT_
$this->collection = $collection; $this->collection = $collection;
// Use a NULL File Cache backend by default. This will ensure only the // Use a NULL File Cache backend by default. This will ensure only the
// internal statc caching of FileCache is used and thus avoids blowing up // internal static caching of FileCache is used and thus avoids blowing up
// the APCu cache. // the APCu cache.
$this->fileCache = FileCacheFactory::get('config', ['cache_backend_class' => NULL]); $this->fileCache = FileCacheFactory::get('config', ['cache_backend_class' => NULL]);
} }
......
...@@ -65,7 +65,7 @@ protected function connect() { ...@@ -65,7 +65,7 @@ protected function connect() {
Database::getConnection(); Database::getConnection();
} }
catch (\Exception $e) { catch (\Exception $e) {
// Detect utf8mb4 incompability. // Detect utf8mb4 incompatibility.
if ($e->getCode() == Connection::UNSUPPORTED_CHARSET || ($e->getCode() == Connection::SQLSTATE_SYNTAX_ERROR && $e->errorInfo[1] == Connection::UNKNOWN_CHARSET)) { if ($e->getCode() == Connection::UNSUPPORTED_CHARSET || ($e->getCode() == Connection::SQLSTATE_SYNTAX_ERROR && $e->errorInfo[1] == Connection::UNKNOWN_CHARSET)) {
$this->fail(t('Your MySQL server and PHP MySQL driver must support utf8mb4 character encoding. Make sure to use a database system that supports this (such as MySQL/MariaDB/Percona 5.5.3 and up), and that the utf8mb4 character set is compiled in. See the <a href=":documentation" target="_blank">MySQL documentation</a> for more information.', [':documentation' => 'https://dev.mysql.com/doc/refman/5.0/en/cannot-initialize-character-set.html'])); $this->fail(t('Your MySQL server and PHP MySQL driver must support utf8mb4 character encoding. Make sure to use a database system that supports this (such as MySQL/MariaDB/Percona 5.5.3 and up), and that the utf8mb4 character set is compiled in. See the <a href=":documentation" target="_blank">MySQL documentation</a> for more information.', [':documentation' => 'https://dev.mysql.com/doc/refman/5.0/en/cannot-initialize-character-set.html']));
$info = Database::getConnectionInfo(); $info = Database::getConnectionInfo();
......
...@@ -38,7 +38,7 @@ class Connection extends DatabaseConnection { ...@@ -38,7 +38,7 @@ class Connection extends DatabaseConnection {
/** /**
* A map of condition operators to PostgreSQL operators. * A map of condition operators to PostgreSQL operators.
* *
* In PostgreSQL, 'LIKE' is case-sensitive. ILKE should be used for * In PostgreSQL, 'LIKE' is case-sensitive. ILIKE should be used for
* case-insensitive statements. * case-insensitive statements.
*/ */
protected static $postgresqlConditionOperatorMap = [ protected static $postgresqlConditionOperatorMap = [
......
...@@ -22,7 +22,7 @@ public function process(ContainerBuilder $container) { ...@@ -22,7 +22,7 @@ public function process(ContainerBuilder $container) {
$enabled = !empty($cors_config['enabled']); $enabled = !empty($cors_config['enabled']);
} }
// Remove the CORS middleware completly in case it was not enabled. // Remove the CORS middleware completely in case it was not enabled.
if (!$enabled) { if (!$enabled) {
$container->removeDefinition('http_middleware.cors'); $container->removeDefinition('http_middleware.cors');
} }
......
...@@ -1095,7 +1095,7 @@ protected function initializeSettings(Request $request) { ...@@ -1095,7 +1095,7 @@ protected function initializeSettings(Request $request) {
// misses. // misses.
$old_loader = $this->classLoader; $old_loader = $this->classLoader;
$this->classLoader = $loader; $this->classLoader = $loader;
// Our class loaders are preprended to ensure they come first like the // Our class loaders are prepended to ensure they come first like the
// class loader they are replacing. // class loader they are replacing.
$old_loader->register(TRUE); $old_loader->register(TRUE);
$loader->register(TRUE); $loader->register(TRUE);
......
...@@ -251,8 +251,8 @@ public static function validateEntityAutocomplete(array &$element, FormStateInte ...@@ -251,8 +251,8 @@ public static function validateEntityAutocomplete(array &$element, FormStateInte
/** /**
* Finds an entity from an autocomplete input without an explicit ID. * Finds an entity from an autocomplete input without an explicit ID.
* *
* The method will return an entity ID if one single entity unambuguously * The method will return an entity ID if one single entity unambiguously
* matches the incoming input, and sill assign form errors otherwise. * matches the incoming input, and assign form errors otherwise.
* *
* @param \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface $handler * @param \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface $handler
* Entity reference selection plugin. * Entity reference selection plugin.
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* or the entity ID may be passed. * or the entity ID may be passed.
* *
* Note that the definition of the referenced entity's type is required, whereas * Note that the definition of the referenced entity's type is required, whereas
* defining referencable entity bundle(s) is optional. A reference defining the * defining referenceable entity bundle(s) is optional. A reference defining the
* type and bundle of the referenced entity can be created as following: * type and bundle of the referenced entity can be created as following:
* @code * @code
* $definition = \Drupal\Core\Entity\EntityDefinition::create($entity_type) * $definition = \Drupal\Core\Entity\EntityDefinition::create($entity_type)
......
...@@ -518,7 +518,7 @@ protected function loadFromSharedTables(array &$values, array &$translations, $l ...@@ -518,7 +518,7 @@ protected function loadFromSharedTables(array &$values, array &$translations, $l
// Some fields can have more then one columns in the data table so // Some fields can have more then one columns in the data table so
// column names are needed. // column names are needed.
foreach ($data_fields as $data_field) { foreach ($data_fields as $data_field) {
// \Drupal\Core\Entity\Sql\TableMappingInterface:: getColumNames() // \Drupal\Core\Entity\Sql\TableMappingInterface::getColumnNames()
// returns an array keyed by property names so remove the keys // returns an array keyed by property names so remove the keys
// before array_merge() to avoid losing data with fields having the // before array_merge() to avoid losing data with fields having the
// same columns i.e. value. // same columns i.e. value.
......
...@@ -687,7 +687,7 @@ public function prepareForm($form_id, &$form, FormStateInterface &$form_state) { ...@@ -687,7 +687,7 @@ public function prepareForm($form_id, &$form, FormStateInterface &$form_state) {
// will be replaced at the very last moment. This ensures forms with // will be replaced at the very last moment. This ensures forms with
// dynamically generated action URLs don't have poor cacheability. // dynamically generated action URLs don't have poor cacheability.
// Use the proper API to generate the placeholder, when we have one. See // Use the proper API to generate the placeholder, when we have one. See
// https://www.drupal.org/node/2562341. The placholder uses a fixed string // https://www.drupal.org/node/2562341. The placeholder uses a fixed string
// that is Crypt::hashBase64('Drupal\Core\Form\FormBuilder::prepareForm'); // that is Crypt::hashBase64('Drupal\Core\Form\FormBuilder::prepareForm');
$placeholder = 'form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM'; $placeholder = 'form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM';
......
...@@ -43,7 +43,7 @@ class HandlerStackConfigurator { ...@@ -43,7 +43,7 @@ class HandlerStackConfigurator {
protected $container; protected $container;
/** /**
* Contructs a new HandlerStackConfigurator object. * Constructs a new HandlerStackConfigurator object.
* *
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The service container. * The service container.
......
...@@ -44,7 +44,7 @@ public function __construct($host) { ...@@ -44,7 +44,7 @@ public function __construct($host) {
* @param array $request * @param array $request
* (optional) An array of request variables. * (optional) An array of request variables.
* @param array $attributes * @param array $attributes
* (optioanl) An array of attributes. * (optional) An array of attributes.
* @param array $cookies * @param array $cookies
* (optional) The request cookies ($_COOKIE). * (optional) The request cookies ($_COOKIE).
* @param array $files * @param array $files
......
...@@ -19,7 +19,7 @@ class InstallProfileMismatchException extends InstallerException { ...@@ -19,7 +19,7 @@ class InstallProfileMismatchException extends InstallerException {
* @param string $settings_profile * @param string $settings_profile
* The profile in settings.php. * The profile in settings.php.
* @param string $settings_file * @param string $settings_file
* The path to settigns.php. * The path to settings.php.
* @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
* The string translation manager. * The string translation manager.
* *
......
...@@ -30,7 +30,7 @@ interface MenuLinkTreeInterface { ...@@ -30,7 +30,7 @@ interface MenuLinkTreeInterface {
* *
* Builds menu link tree parameters that: * Builds menu link tree parameters that:
* - Expand all links in the active trail based on route being viewed. * - Expand all links in the active trail based on route being viewed.
* - Expand the descendents of the links in the active trail whose * - Expand the descendants of the links in the active trail whose
* 'expanded' flag is enabled. * 'expanded' flag is enabled.
* *
* This only sets the (relatively complex) parameters to achieve the two above * This only sets the (relatively complex) parameters to achieve the two above
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* Do not serve cached pages to authenticated users, or to anonymous users when * Do not serve cached pages to authenticated users, or to anonymous users when
* $_SESSION is non-empty. $_SESSION may contain status messages from a form * $_SESSION is non-empty. $_SESSION may contain status messages from a form
* submission, the contents of a shopping cart, or other userspecific content * submission, the contents of a shopping cart, or other user-specific content
* that should not be cached and displayed to other users. * that should not be cached and displayed to other users.
*/ */
class NoSessionOpen implements RequestPolicyInterface { class NoSessionOpen implements RequestPolicyInterface {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
use Drupal\Component\ProxyBuilder\ProxyBuilder as BaseProxyBuilder; use Drupal\Component\ProxyBuilder\ProxyBuilder as BaseProxyBuilder;
/** /**
* Extend the component proxy builder by using the DependencySerialziationTrait. * Extend the component proxy builder by using the DependencySerializationTrait.
*/ */
class ProxyBuilder extends BaseProxyBuilder { class ProxyBuilder extends BaseProxyBuilder {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* strings, if they are literals provided by your module, should be * strings, if they are literals provided by your module, should be
* internationalized and translated; see the * internationalized and translated; see the
* @link i18n Internationalization topic @endlink for more information. Note * @link i18n Internationalization topic @endlink for more information. Note
* that although in the properies list that follows, they are designated to be * that although in the properties list that follows, they are designated to be
* of type string, they would generally end up being * of type string, they would generally end up being
* \Drupal\Core\StringTranslation\TranslatableMarkup objects instead. * \Drupal\Core\StringTranslation\TranslatableMarkup objects instead.
* *
......
...@@ -106,7 +106,7 @@ protected function getUnprefixedName(Request $request) { ...@@ -106,7 +106,7 @@ protected function getUnprefixedName(Request $request) {
* Return the session cookie domain. * Return the session cookie domain.
* *
* The Set-Cookie response header and its domain attribute are defined in RFC * The Set-Cookie response header and its domain attribute are defined in RFC
* 2109, RFC 2965 and RFC 6265 each one superseeding the previous version. * 2109, RFC 2965 and RFC 6265 each one superseding the previous version.
* *
* @see http://tools.ietf.org/html/rfc2109 * @see http://tools.ietf.org/html/rfc2109
* @see http://tools.ietf.org/html/rfc2965 * @see http://tools.ietf.org/html/rfc2965
......
...@@ -82,7 +82,7 @@ interface StreamWrapperInterface extends PhpStreamWrapperInterface { ...@@ -82,7 +82,7 @@ interface StreamWrapperInterface extends PhpStreamWrapperInterface {
const READ_VISIBLE = 0x0014; const READ_VISIBLE = 0x0014;
/** /**
* This is the default 'type' falg. This does not include * This is the default 'type' flag. This does not include
* StreamWrapperInterface::LOCAL, because PHP grants a greater trust level to * StreamWrapperInterface::LOCAL, because PHP grants a greater trust level to
* local files (for example, they can be used in an "include" statement, * local files (for example, they can be used in an "include" statement,
* regardless of the "allow_url_include" setting), so stream wrappers need to * regardless of the "allow_url_include" setting), so stream wrappers need to
......
...@@ -188,7 +188,7 @@ public function getPropertyInstance(TypedDataInterface $object, $property_name, ...@@ -188,7 +188,7 @@ public function getPropertyInstance(TypedDataInterface $object, $property_name,
throw new \InvalidArgumentException("Property $property_name is unknown."); throw new \InvalidArgumentException("Property $property_name is unknown.");
} }
// Create the prototype without any value, but with initial parenting // Create the prototype without any value, but with initial parenting
// so that constructors can set up the objects correclty. // so that constructors can set up the objects correctly.
$this->prototypes[$key] = $this->create($definition, NULL, $property_name, $object); $this->prototypes[$key] = $this->create($definition, NULL, $property_name, $object);
} }
......
...@@ -197,7 +197,7 @@ public function getPendingUpdateInformation() { ...@@ -197,7 +197,7 @@ public function getPendingUpdateInformation() {
} }
/** /**
* Registers that update fucntions got executed. * Registers that update functions were executed.
* *
* @param string[] $function_names * @param string[] $function_names
* The executed update functions. * The executed update functions.
......
...@@ -105,7 +105,7 @@ public function getSchemaUpdates() { ...@@ -105,7 +105,7 @@ public function getSchemaUpdates() {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function postInstallTasks() { public function postInstallTasks() {
// Since this is being called outsite of the primary front controller, // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are // the base_url needs to be set explicitly to ensure that links are
// relative to the site root. // relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095 // @todo Simplify with https://www.drupal.org/node/2548095
......
...@@ -87,7 +87,7 @@ public function postInstall() { ...@@ -87,7 +87,7 @@ public function postInstall() {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function postInstallTasks() { public function postInstallTasks() {
// Since this is being called outsite of the primary front controller, // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are // the base_url needs to be set explicitly to ensure that links are
// relative to the site root. // relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095 // @todo Simplify with https://www.drupal.org/node/2548095
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* @type {Drupal~behavior} * @type {Drupal~behavior}
* *
* @prop {Drupal~behaviorAttach} attach * @prop {Drupal~behaviorAttach} attach
* Attaches the behavior for drupalAnnouce. * Attaches the behavior for drupalAnnounce.
*/ */
Drupal.behaviors.drupalAnnounce = { Drupal.behaviors.drupalAnnounce = {
attach(context) { attach(context) {
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
.find('input.form-autocomplete') .find('input.form-autocomplete')
.once('autocomplete'); .once('autocomplete');
if ($autocomplete.length) { if ($autocomplete.length) {
// Allow options to be overriden per instance. // Allow options to be overridden per instance.
const blacklist = $autocomplete.attr( const blacklist = $autocomplete.attr(
'data-autocomplete-first-character-blacklist', 'data-autocomplete-first-character-blacklist',
); );
......
...@@ -94,7 +94,7 @@ public function refresh(FeedInterface $feed) { ...@@ -94,7 +94,7 @@ public function refresh(FeedInterface $feed) {
watchdog_exception('aggregator', $e); watchdog_exception('aggregator', $e);
} }
// Store instances in an array so we dont have to instantiate new objects. // Store instances in an array so we don't have to instantiate new objects.
$processor_instances = []; $processor_instances = [];
foreach ($this->config->get('processors') as $processor) { foreach ($this->config->get('processors') as $processor) {
try { try {
......
...@@ -33,7 +33,7 @@ class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterfa ...@@ -33,7 +33,7 @@ class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterfa
* @param string $plugin_id * @param string $plugin_id
* The plugin ID. * The plugin ID.
* @param mixed $plugin_definition * @param mixed $plugin_definition
* The plugin definiiton. * The plugin definition.
* @param \Drupal\migrate\Plugin\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The current migration. * The current migration.
* @param \Drupal\ban\BanIpManagerInterface $ban_manager * @param \Drupal\ban\BanIpManagerInterface $ban_manager
......
...@@ -177,7 +177,7 @@ public function testBook() { ...@@ -177,7 +177,7 @@ public function testBook() {
$this->checkBookNode($other_book, [$node], FALSE, FALSE, $node, []); $this->checkBookNode($other_book, [$node], FALSE, FALSE, $node, []);
$this->checkBookNode($node, NULL, $other_book, $other_book, FALSE, [$other_book]); $this->checkBookNode($node, NULL, $other_book, $other_book, FALSE, [$other_book]);
// Test that we can save a book programatically. // Test that we can save a book programmatically.
$this->drupalLogin($this->bookAuthor); $this->drupalLogin($this->bookAuthor);
$book = $this->createBookNode('new'); $book = $this->createBookNode('new');
$book->save(); $book->save();
...@@ -282,7 +282,7 @@ public function testGetTableOfContents() { ...@@ -282,7 +282,7 @@ public function testGetTableOfContents() {
$nodes[$child] = $this->createBookNode($book->id(), $nodes[$parent]->id()); $nodes[$child] = $this->createBookNode($book->id(), $nodes[$parent]->id());
} }
$this->drupalGet($nodes[0]->toUrl('edit-form')); $this->drupalGet($nodes[0]->toUrl('edit-form'));
// Snice Node 0 has children 2 levels deep, nodes 10 and 11 should not // Since Node 0 has children 2 levels deep, nodes 10 and 11 should not
// appear in the selector. // appear in the selector.
$this->assertNoOption('edit-book-pid', $nodes[10]->id()); $this->assertNoOption('edit-book-pid', $nodes[10]->id());
$this->assertNoOption('edit-book-pid', $nodes[11]->id()); $this->assertNoOption('edit-book-pid', $nodes[11]->id());
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
* Reacts on a change in the editor element. * Reacts on a change in the editor element.
* *
* @param {HTMLElement} element * @param {HTMLElement} element
* The element where the change occured. * The element where the change occurred.
* @param {function} callback * @param {function} callback
* Callback called with the value of the editor. * Callback called with the value of the editor.
* *
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\editor\Entity\Editor; use Drupal\editor\Entity\Editor;
/** /**
* Defines a "LlamaContextualAndbutton" plugin, with a contextually OR toolbar * Defines a "LlamaContextualAndButton" plugin, with a contextually OR toolbar
* builder-enabled "llama" feature. * builder-enabled "llama" feature.
* *
* @CKEditorPlugin( * @CKEditorPlugin(
......
...@@ -50,7 +50,7 @@ public function access($operation = 'view', AccountInterface $account = NULL, $r ...@@ -50,7 +50,7 @@ public function access($operation = 'view', AccountInterface $account = NULL, $r
return $return_as_object ? $result : $result->isAllowed(); return $return_as_object ? $result : $result->isAllowed();
} }
if ($operation === 'view') { if ($operation === 'view') {
// Only users with either post comments or access comments permisison can // Only users with "post comments" or "access comments" permission can
// view the field value. The formatter, // view the field value. The formatter,
// Drupal\comment\Plugin\Field\FieldFormatter\CommentDefaultFormatter, // Drupal\comment\Plugin\Field\FieldFormatter\CommentDefaultFormatter,
// takes care of showing the thread and form based on individual // takes care of showing the thread and form based on individual
......
...@@ -14,7 +14,7 @@ class CommentHalJsonAnonTest extends CommentHalJsonTestBase { ...@@ -14,7 +14,7 @@ class CommentHalJsonAnonTest extends CommentHalJsonTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* Anononymous users cannot edit their own comments. * Anonymous users cannot edit their own comments.
* *
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
* *
......
...@@ -24,7 +24,7 @@ class CommentJsonAnonTest extends CommentResourceTestBase { ...@@ -24,7 +24,7 @@ class CommentJsonAnonTest extends CommentResourceTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* Anononymous users cannot edit their own comments. * Anonymous users cannot edit their own comments.
* *
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
* *
......
...@@ -60,7 +60,7 @@ protected function setUpAuthorization($method) { ...@@ -60,7 +60,7 @@ protected function setUpAuthorization($method) {
$this->grantPermissionsToTestedRole(['post comments']); $this->grantPermissionsToTestedRole(['post comments']);
break; break;
case 'PATCH': case 'PATCH':
// Anononymous users are not ever allowed to edit their own comments. To // Anonymous users are not ever allowed to edit their own comments. To
// be able to test PATCHing comments as the anonymous user, the more // be able to test PATCHing comments as the anonymous user, the more
// permissive 'administer comments' permission must be granted. // permissive 'administer comments' permission must be granted.
// @see \Drupal\comment\CommentAccessControlHandler::checkAccess // @see \Drupal\comment\CommentAccessControlHandler::checkAccess
......
...@@ -26,7 +26,7 @@ class CommentXmlAnonTest extends CommentResourceTestBase { ...@@ -26,7 +26,7 @@ class CommentXmlAnonTest extends CommentResourceTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* Anononymous users cannot edit their own comments. * Anonymous users cannot edit their own comments.
* *
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
* *
......
...@@ -55,7 +55,7 @@ protected function setUp() { ...@@ -55,7 +55,7 @@ protected function setUp() {
} }
/** /**
* Tests that the config mopdule can be uninstalled via CLI config import. * Tests that the config module can be uninstalled via CLI config import.
* *