Commit 80fbd33d authored by jhodgdon's avatar jhodgdon

Issue #2145077 by TR, longwave: Fix about a zillion spelling errors, mostly in comments

parent 3caa9d60
......@@ -2264,7 +2264,7 @@ function drupal_valid_test_ua($new_prefix = NULL) {
// The file properties add more entropy not easily accessible to others.
$key = drupal_get_hash_salt() . filectime(__FILE__) . fileinode(__FILE__);
$time_diff = REQUEST_TIME - $time;
// We cant use Crypt::hmacBase64() yet because this can be called in very
// We can't use Crypt::hmacBase64() yet because this can be called in very
// early bootstrap when autoloader has not been initialized yet.
$test_hmac = base64_encode(hash_hmac('sha256', $check_string, $key, TRUE));
$test_hmac = strtr($test_hmac, array('+' => '-', '/' => '_', '=' => ''));
......
......@@ -624,7 +624,7 @@ function valid_url($url, $absolute = FALSE) {
* given step.
*
* @return bool
* TRUE if no step mismatch has occured, or FALSE otherwise.
* TRUE if no step mismatch has occurred, or FALSE otherwise.
*
* @deprecated as of Drupal 8.0. Use
* \Drupal\Component\Utility\Number::validStep() directly instead
......
......@@ -1670,7 +1670,7 @@ function install_select_language_form($form, &$form_state, $files = array()) {
*
* @return string
* A themed status report, or an exception if there are requirement errors.
* Upon successfull download the page is reloaded and no output is returned.
* Upon successful download the page is reloaded and no output is returned.
*/
function install_download_translation(&$install_state) {
// Check whether all conditions are met to download. Download the translation
......@@ -1680,7 +1680,7 @@ function install_download_translation(&$install_state) {
return $output;
}
// The download was successfull, reload the page in the new lanagage.
// The download was successful, reload the page in the new lanagage.
install_goto(install_redirect_url($install_state));
}
......@@ -2205,7 +2205,7 @@ function install_finished(&$install_state) {
// Will also trigger indexing of profile-supplied content or feeds.
drupal_cron_run();
// Save a snapshot of the intially installed configuration.
// Save a snapshot of the initially installed configuration.
$active = drupal_container()->get('config.storage');
$snapshot = drupal_container()->get('config.storage.snapshot');
config_import_create_snapshot($active, $snapshot);
......
......@@ -23,7 +23,7 @@
class Plugin implements AnnotationInterface {
/**
* The plugin definiton read from the class annotation.
* The plugin definition read from the class annotation.
*
* @var array
*/
......
......@@ -247,11 +247,11 @@ private function readHeader() {
* this line ends the current item, it is saved with setItemFromArray() with
* data from $this->_current_item.
*
* An internal state machine is maintained in this reader using $this->_context
* as the reading state. PO items are inbetween COMMENT states (when items have
* at least one line or comment inbetween them or indicated by MSGSTR or
* MSGSTR_ARR followed immediately by an MSGID or MSGCTXT (when items closely
* follow each other).
* An internal state machine is maintained in this reader using
* $this->_context as the reading state. PO items are in between COMMENT
* states (when items have at least one line or comment in between them) or
* indicated by MSGSTR or MSGSTR_ARR followed immediately by an MSGID or
* MSGCTXT (when items closely follow each other).
*
* @return
* FALSE if an error was logged, NULL otherwise. The errors are considered
......
......@@ -9,7 +9,7 @@
/**
* Plugin interface for providing some metadata inspection.
*
* This interface provides some simple tools for code recieving a plugin to
* This interface provides some simple tools for code receiving a plugin to
* interact with the plugin system.
*/
interface PluginInspectionInterface {
......
......@@ -28,7 +28,7 @@ class Number {
* given step.
*
* @return bool
* TRUE if no step mismatch has occured, or FALSE otherwise.
* TRUE if no step mismatch has occurred, or FALSE otherwise.
*
* @see http://opensource.apple.com/source/WebCore/WebCore-1298/html/NumberInputType.cpp
*/
......
......@@ -91,14 +91,14 @@ class Unicode {
const STATUS_ERROR = -1;
/**
* Holds the multibyte capabilities of the current enviroment.
* Holds the multibyte capabilities of the current environment.
*
* @var int
*/
protected static $status = 0;
/**
* Get the current status of unicode/multibyte support on this enviroment.
* Get the current status of unicode/multibyte support on this environment.
*
* @return int
* The status of multibyte support. It can be one of:
......@@ -107,14 +107,14 @@ class Unicode {
* - \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE
* Standard PHP (emulated) unicode support.
* - \Drupal\Component\Utility\Unicode::STATUS_ERROR
* An error occured. No unicode support.
* An error occurred. No unicode support.
*/
public static function getStatus() {
return static::$status;
}
/**
* Sets the value for multibyte support status for the current enviroment.
* Sets the value for multibyte support status for the current environment.
*
* The following status keys are supported:
* - \Drupal\Component\Utility\Unicode::STATUS_MULTIBYTE
......@@ -122,7 +122,7 @@ public static function getStatus() {
* - \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE
* Standard PHP (emulated) unicode support.
* - \Drupal\Component\Utility\Unicode::STATUS_ERROR
* An error occured. No unicode support.
* An error occurred. No unicode support.
*
* @param int $status
* The new status of multibyte support.
......
......@@ -232,8 +232,8 @@ public static function externalIsLocal($url, $base_url) {
}
else {
// When comparing base paths, we need a trailing slash to make sure a
// partial URL match isn't occuring. Since base_path() always returns with
// a trailing slash, we don't need to add the trailing slash here.
// partial URL match isn't occurring. Since base_path() always returns
// with a trailing slash, we don't need to add the trailing slash here.
return ($url_parts['host'] == $base_host && stripos($url_parts['path'], $base_url) === 0);
}
}
......
......@@ -110,7 +110,7 @@ public function loadFile($file, $optimize = NULL, $reset_basepath = TRUE) {
$content = $this->processCss($contents, $_optimize);
}
// Restore the parent base path as the file and its childen are processed.
// Restore the parent base path as the file and its children are processed.
$basepath = $parent_base_path;
return $content;
}
......
......@@ -268,7 +268,7 @@ public function on500Html(FlattenException $exception, Request $request) {
}
/**
* Processes an AccessDenied exception that occured on a JSON request.
* Processes an AccessDenied exception that occurred on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
......@@ -282,7 +282,7 @@ public function on403Json(FlattenException $exception, Request $request) {
}
/**
* Processes a NotFound exception that occured on a JSON request.
* Processes a NotFound exception that occurred on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
......@@ -296,7 +296,7 @@ public function on404Json(FlattenException $exception, Request $request) {
}
/**
* Processes a MethodNotAllowed exception that occured on a JSON request.
* Processes a MethodNotAllowed exception that occurred on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
......
......@@ -169,7 +169,7 @@ public function addField($field, $type, $langcode) {
else {
// ensureEntityTable() decides whether an entity property will be
// queried from the data table or the base table based on where it
// finds the property first. The data table is prefered, which is why
// finds the property first. The data table is preferred, which is why
// it gets added before the base table.
$entity_tables = array();
if (isset($entity_info['data_table'])) {
......
......@@ -52,7 +52,8 @@ protected function alterRoutes(RouteCollection $collection, $module) {
* The route build event.
*
* @return bool
* Returns TRUE if the variables were succesfully replaced, otherwise FALSE.
* Returns TRUE if the variables were successfully replaced, otherwise
* FALSE.
*/
public function onAlterRoutes(RouteBuildEvent $event) {
$collection = $event->getRouteCollection();
......
......@@ -15,7 +15,7 @@
* Instances of this class are used to store the configuration and extensions,
* and are used to load templates from the file system or other locations.
*
* @see core\vendor\twig\twig\lib\Twig\Enviornment.php
* @see core\vendor\twig\twig\lib\Twig\Environment.php
*/
class TwigEnvironment extends \Twig_Environment {
protected $cache_object = NULL;
......
......@@ -15,7 +15,7 @@ function scrollValue(position) {
return document.documentElement[position] || document.body[position];
}
// Select and initilize sticky table headers.
// Select and initialize sticky table headers.
function tableHeaderInitHandler(e) {
var $tables = $(e.data.context).find('table.sticky-enabled').once('tableheader');
for (var i = 0, il = $tables.length; i < il; i++) {
......
......@@ -37,7 +37,7 @@ public function __construct(BanIpManager $manager) {
}
/**
* Response with 403 if the visitor's IP adress is banned.
* Response with 403 if the visitor's IP address is banned.
*
* @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* The Event to process.
......
......@@ -144,7 +144,7 @@ protected function testDeleteBlockDisplay() {
$block_storage_controller = $this->container->get('entity.manager')->getStorageController('block');
// Remove the block display, so both block entities from the first view
// should both dissapear.
// should both disappear.
$view = views_get_view('test_view_block');
$view->initDisplay();
$view->displayHandlers->remove('block_1');
......
......@@ -266,7 +266,7 @@ function content_translation_menu_alter(array &$items) {
}
while (!empty($entity_form_item['type']) && $entity_form_item['type'] == MENU_DEFAULT_LOCAL_TASK);
// Make the "Translate" tab follow the "Edit" one when possibile.
// Make the "Translate" tab follow the "Edit" one when possible.
if (isset($entity_form_item['weight'])) {
$items["$path/translations"]['weight'] = $entity_form_item['weight'] + 0.01;
}
......
......@@ -461,7 +461,7 @@ public static function daysInMonth($date = NULL) {
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* Defaults to NULL, whcih means to use the current date.
* Defaults to NULL, which means to use the current date.
*
* @return int
* The number of days in the year.
......@@ -506,7 +506,7 @@ public static function dayOfWeek($date = NULL) {
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* Defaults to NULL, whcih means use the current date.
* Defaults to NULL, which means use the current date.
* @param string $abbr
* (optional) Whether to return the abbreviated name for that day.
* Defaults to TRUE.
......
......@@ -24,7 +24,7 @@ class DbLogTest extends WebTestBase {
public static $modules = array('dblog', 'node', 'forum', 'help');
/**
* A user with some relevent administrative permissions.
* A user with some relevant administrative permissions.
*
* @var object
*/
......
......@@ -156,9 +156,9 @@ Drupal.edit.FieldModel = Backbone.Model.extend({
// - Trigger: user.
// - Guarantees: see 'candidate' and 'active'.
// - Expected behavior: saving indicator, in-place editor is saving field
// data into TempStore. Upon succesful saving (without validation errors),
// the in-place editor transitions the field's state to 'saved', but to
// 'invalid' upon failed saving (with validation errors).
// data into TempStore. Upon successful saving (without validation
// errors), the in-place editor transitions the field's state to 'saved',
// but to 'invalid' upon failed saving (with validation errors).
'saving',
// In-place editor has successfully saved the changed field.
// - Trigger: in-place editor.
......
......@@ -74,7 +74,7 @@ Drupal.edit.EditorView = Backbone.View.extend({
* insert its own toolbar UI into Edit's tightly integrated toolbar.
* - Boolean fullWidthToolbar: indicates whether Edit's tightly integrated
* toolbar should consume the full width of the element, rather than being
* just long enough to accomodate a label.
* just long enough to accommodate a label.
*/
getEditUISettings: function () {
return { padding: false, unifiedToolbar: false, fullWidthToolbar: false, popup: false };
......
......@@ -68,7 +68,7 @@ function testPrivateFileTransfer() {
$this->assertEqual($headers['x-foo'], 'Bar', 'Found header set by file_test module on private download.');
$this->assertResponse(200, 'Correctly allowed access to a file when file_test provides headers.');
// Test that the file transfered correctly.
// Test that the file transferred correctly.
$this->assertEqual($contents, $this->content, 'Contents of the file are correct.');
// Deny access to all downloads via a -1 header.
......
......@@ -143,10 +143,10 @@ function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash =
}
// Add some extra chars to the token.
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url));
$this->assertResponse(403, 'Image was inaccessible at the URL wih an invalid token.');
$this->assertResponse(403, 'Image was inaccessible at the URL with an invalid token.');
// Change the parameter name so the token is missing.
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrongparam=', $generate_url));
$this->assertResponse(403, 'Image was inaccessible at the URL wih a missing token.');
$this->assertResponse(403, 'Image was inaccessible at the URL with a missing token.');
// Check that the generated URL is the same when we pass in a relative path
// rather than a URI. We need to temporarily switch the default scheme to
......@@ -205,7 +205,7 @@ function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash =
elseif ($clean_url) {
// Add some extra chars to the token.
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url));
$this->assertResponse(200, 'Existing image was accessible at the URL wih an invalid token.');
$this->assertResponse(200, 'Existing image was accessible at the URL with an invalid token.');
}
// Allow insecure image derivatives to be created for the remainder of this
......
......@@ -134,9 +134,9 @@ function language_from_browser($languages) {
foreach ($browser_langcodes as $langcode => $qvalue) {
// For Chinese languages the generic tag is either zh-hans or zh-hant, so we
// need to handle this separately, we can not split $langcode on the
// first occurence of '-' otherwise we get a non-existing language zh.
// first occurrence of '-' otherwise we get a non-existing language zh.
// All other languages use a langcode without a '-', so we can safely split
// on the first occurence of it.
// on the first occurrence of it.
$generic_tag = '';
if (strlen($langcode) > 7 && (substr($langcode, 0, 7) == 'zh-hant' || substr($langcode, 0, 7) == 'zh-hans')) {
$generic_tag = substr($langcode, 0, 7);
......
......@@ -33,7 +33,7 @@ public static function getInfo() {
function testLanguageFromBrowser() {
// The order of the languages is only important if the browser language
// codes are having the same qvalue, otherwise the one with the highest
// qvalue is prefered. The automatically generated generic tags are always
// qvalue is preferred. The automatically generated generic tags are always
// having a lower qvalue.
$languages = array(
......@@ -77,7 +77,7 @@ function testLanguageFromBrowser() {
);
$test_cases = array(
// Equal qvalue for each language, choose the site prefered one.
// Equal qvalue for each language, choose the site preferred one.
'en,en-US,fr-CA,fr,es-MX' => 'en',
'en-US,en,fr-CA,fr,es-MX' => 'en',
'fr,en' => 'en',
......
......@@ -151,7 +151,7 @@ function testStandalonePoFile() {
// The database should now contain 6 customized strings (two imported
// strings are not translated).
$count = db_query('SELECT lid FROM {locales_target} WHERE customized = :custom', array(':custom' => 1))->rowCount();
$this->assertEqual($count, 6, 'Customized translations succesfully imported.');
$this->assertEqual($count, 6, 'Customized translations successfully imported.');
// Try importing a .po file with overriding strings, and ensure existing
// customized strings are kept.
......
......@@ -3,7 +3,7 @@
"use strict";
/**
* Markes changes of translations
* Marks changes of translations
*/
Drupal.behaviors.localeTranslateDirty = {
attach: function () {
......
......@@ -87,7 +87,7 @@ function locale_translation_batch_status_check($project, $langcode, $options = a
* Batch finished callback: Set result message.
*
* @param boolean $success
* TRUE if batch succesfully completed.
* TRUE if batch successfully completed.
* @param array $results
* Batch results.
*/
......@@ -185,7 +185,7 @@ function locale_translation_batch_fetch_import($project, $langcode, $options, &$
// The import is finished.
if (isset($context['finished']) && $context['finished'] == 1) {
// The import is successfull.
// The import is successful.
if (isset($context['results']['files'][$file->uri])) {
$context['message'] = t('Imported translation for %project.', array('%project' => $source->project));
......@@ -203,7 +203,7 @@ function locale_translation_batch_fetch_import($project, $langcode, $options, &$
* Batch finished callback: Set result message.
*
* @param boolean $success
* TRUE if batch succesfully completed.
* TRUE if batch successfully completed.
* @param array
* Batch results.
*/
......
......@@ -736,7 +736,7 @@ function locale_translate_file_attach_properties($file, $options = array()) {
* Defaults to all languagues
*
* @return boolean
* TRUE if files are removed sucessfully. FALSE if one or more files could
* TRUE if files are removed successfully. FALSE if one or more files could
* not be deleted.
*/
function locale_translate_delete_translation_files($projects = array(), $langcodes = array()) {
......
......@@ -15,7 +15,7 @@
function locale_test_system_info_alter(&$info, $file, $type) {
// Only modify the system info if required.
// By default the locale_test modules are hidden and have a project specified.
// To test the module detection proces by locale_project_list() the
// To test the module detection process by locale_project_list() the
// test modules should mimic a custom module. I.e. be non-hidden.
if (\Drupal::state()->get('locale.test_system_info_alter')) {
if ($file->name == 'locale_test' || $file->name == 'locale_test_translate') {
......
......@@ -86,7 +86,7 @@ function testNodeTypeInitialLanguageDefaults() {
// Tests if the language field is hidden by default.
$this->assertOptionSelected('edit-fields-langcode-type', 'hidden', 'Language is hidden by default on manage display tab.');
// Changes the inital language settings.
// Changes the initial language settings.
$edit = array(
'language_configuration[langcode]' => 'en',
);
......
......@@ -417,7 +417,7 @@ function testSelectListMultiple() {
// Test the 'None' option.
// Check that the 'none' option has no efect if actual options are selected
// Check that the 'none' option has no effect if actual options are selected
// as well.
$edit = array('card_2[]' => array('_none' => '_none', 0 => 0));
$this->drupalPostForm('entity_test/manage/' . $entity->id(), $edit, t('Save'));
......
......@@ -72,7 +72,7 @@ public function testRead() {
// Now read it with the Basic authentication which is enabled and should
// work.
$response = $this->basicAuthGet('entity/' . $entity_type . '/' . $entity->id(), $account->getUsername(), $account->pass_raw);
$this->assertResponse('200', 'HTTP response code is 200 for successfuly authorized requests.');
$this->assertResponse('200', 'HTTP response code is 200 for successfully authorized requests.');
$this->curlClose();
}
......
......@@ -1124,7 +1124,7 @@ protected function tearDown() {
// Reset all static variables.
// All destructors of statically cached objects have been invoked above;
// this second reset is guranteed to reset everything to nothing.
// this second reset is guaranteed to reset everything to nothing.
drupal_static_reset();
// Restore original in-memory configuration.
......
......@@ -92,7 +92,7 @@ function hook_language_types_info_alter(array &$language_types) {
*
* @return
* An associative array of language negotiation method definitions. The keys
* are method identifiers, and the values are associative arrays definining
* are method identifiers, and the values are associative arrays defining
* each method, with the following elements:
* - types: An array of allowed language types. If a language negotiation
* method does not specify which language types it should be used with, it
......
......@@ -116,7 +116,7 @@ public function setUp() {
public function tearDown() {
// Destruct the registered backend, each test will get a fresh instance,
// properly emptying it here ensure that on persistant data backends they
// properly emptying it here ensure that on persistent data backends they
// will come up empty the next test.
foreach ($this->cachebackends as $bin => $cachebackend) {
$this->cachebackends[$bin]->deleteAll();
......
......@@ -209,7 +209,7 @@ function testMergeUpdateWithoutUpdate() {
function testInvalidMerge() {
try {
// This query will fail because there is no key field specified.
// Normally it would throw an exception but we are supressing it with
// Normally it would throw an exception but we are suppressing it with
// the throw_exception option.
$options['throw_exception'] = FALSE;
db_merge('test_people', $options)
......
......@@ -452,7 +452,7 @@ function testSelectDuplicateAlias() {
function testInvalidSelectCount() {
try {
// This query will fail because the table does not exist.
// Normally it would throw an exception but we are supressing
// Normally it would throw an exception but we are suppressing
// it with the throw_exception option.
$options['throw_exception'] = FALSE;
db_select('some_table_that_doesnt_exist', 't', $options)
......
......@@ -10,7 +10,7 @@
use Drupal\simpletest\WebTestBase;
/**
* Tests content negotation.
* Tests content negotiation.
*/
class ContentNegotiationTest extends WebTestBase {
......
......@@ -24,7 +24,7 @@ class ConfigEntityQueryTest extends DrupalUnitTestBase {
static $modules = array('config_test');
/**
* Stores the search results for alter comparision.
* Stores the search results for alter comparison.
*
* @var array
*/
......
......@@ -311,7 +311,7 @@ function testSort() {
->sort("$greetings.format")
->sort('id');
// As we do not have any conditions, here are the possible colors and
// language codes, already in order, with the first occurence of the
// language codes, already in order, with the first occurrence of the
// entity id marked with *:
// 8 NULL pl *
// 12 NULL pl *
......@@ -507,7 +507,7 @@ protected function assertBundleOrder($order) {
/**
* Test adding a tag and metadata to the Entity query object.
*
* The tags and metadata should propogate to the SQL query object.
* The tags and metadata should propagate to the SQL query object.
*/
function testMetaData() {
$query = \Drupal::entityQuery('entity_test_mulrev');
......@@ -517,6 +517,6 @@ function testMetaData() {
->execute();
global $efq_test_metadata;
$this->assertEqual($efq_test_metadata, 'bar', 'Tag and metadata propogated to the SQL query object.');
$this->assertEqual($efq_test_metadata, 'bar', 'Tag and metadata propagated to the SQL query object.');
}
}
......@@ -44,7 +44,7 @@ class DiscoveryTestBase extends UnitTestBase {
function testDiscoveryInterface() {
// Ensure that getDefinitions() returns the expected definitions.
// For the arrays to be identical (instead of only equal), they must be
// sorted equally, which seems unneccessary here.
// sorted equally, which seems unnecessary here.
$this->assertEqual($this->discovery->getDefinitions(), $this->expectedDefinitions);
// Ensure that getDefinition() returns the expected definition.
......
......@@ -46,7 +46,7 @@ function setUp() {
}
/**
* Confirms that the dumper can be instantiated successfuly.
* Confirms that the dumper can be instantiated successfully.
*/
function testCreate() {
$connection = Database::getConnection();
......
......@@ -39,7 +39,7 @@ function setUp() {
* Test attribute merging.
*
* Render arrays that use a render element and templates (and hence call
* template_preprocess()) must ensure the attributes at different occassions
* template_preprocess()) must ensure the attributes at different occasions
* are all merged correctly:
* - $variables['attributes'] as passed in to theme()
* - the render element's #attributes
......
......@@ -20,7 +20,7 @@ Drupal.behaviors.copyFieldValue = {
}
}
if (ids.length) {
// Listen to value:copy events on all dependant fields.
// Listen to value:copy events on all dependent fields.
// We have to use body and not document because of the way jQuery events
// bubble up the DOM tree.
$('body').once('copy-field-values').on('value:copy', this.valueTargetCopyHandler);
......@@ -51,7 +51,7 @@ Drupal.behaviors.copyFieldValue = {
/**
* Handler for a Blur event on a source field.
*
* This event handler will trigger a 'value:copy' event on all dependant fields.
* This event handler will trigger a 'value:copy' event on all dependent fields.
*/
valueSourceBlurHandler: function (e) {
var value = $(e.target).val();
......
......@@ -13,7 +13,7 @@
class BatchTestController {
/**
* Redirects successfuly.
* Redirects successfully.
*
* @return array
* Render array containing success message.
......
......@@ -358,7 +358,7 @@ function taxonomy_views_data() {
function taxonomy_views_data_alter(&$data) {
$data['node']['term_node_tid'] = array(
'title' => t('Taxonomy terms on node'),
'help' => t('Relate nodes to taxonomy terms, specifiying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple terms.'),
'help' => t('Relate nodes to taxonomy terms, specifying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple terms.'),
'relationship' => array(
'id' => 'node_term_data',
'label' => t('term'),
......
......@@ -100,7 +100,7 @@ Drupal.behaviors.toolbar = {
// Trigger an initial attempt to load menu subitems. This first attempt
// is made after the media query handlers have had an opportunity to
// process. The toolbar starts in the vertical orientation by default,
// unless the viewport is wide enough to accomodate a horizontal
// unless the viewport is wide enough to accommodate a horizontal
// orientation. Thus we give the Toolbar a chance to determine if it
// should be set to horizontal orientation before attempting to load menu
// subtrees.
......
......@@ -13,7 +13,7 @@
/**
* Add items to the toolbar menu.
*
* The toolbar is a container for adminstrative and site-global interactive
* The toolbar is a container for administrative and site-global interactive
* components.
*
* The toolbar provides a common styling for items denoted by the
......@@ -21,7 +21,7 @@
* a toolbar item with the appropriate markup to apply the styling.
*
* The toolbar provides a construct called a 'tray'. The tray is a container
* for content. The tray may be associated with a toggle in the adminstration
* for content. The tray may be associated with a toggle in the administration
* bar. The toggle shows or hides the tray and is optimized for small and
* large screens. To create this association, hook_toolbar() returns one or
* more render elements of type 'toolbar_item', containing the toggle and tray
......@@ -31,7 +31,7 @@
* - 'tab': A renderable array.
* - 'tray': Optional. A renderable array.
* - '#weight': Optional. Integer weight used for sorting toolbar items in
* adminstration bar area.
* administration bar area.
*
* This hook is invoked in toolbar_pre_render().
*
......
......@@ -38,7 +38,7 @@ Drupal.behaviors.tour = {
// Initialization: check whether a tour is available on the current page.
.set('tour', $(context).find('ol#tour'));
// Start the tour imediately if toggled via query string.
// Start the tour immediately if toggled via query string.
if (/tour=?/i.test(queryString)) {
model.set('isActive', true);
}
......
......@@ -26,7 +26,7 @@ class TourTestBase extends WebTestBase {
* $this->assertTourTips();
*
* // Advanced example. The following would be used for multipage or
* // targetting a specific subset of tips.
* // targeting a specific subset of tips.
* $tips = array();
* $tips[] = array('data-id' => 'foo');
* $tips[] = array('data-id' => 'bar');
......
......@@ -98,7 +98,7 @@ public function buildFetchUrl(array $project, $site_key = '') {
$url = $this->getFetchBaseUrl($project);
$url .= '/' . $name . '/' . \Drupal::CORE_COMPATIBILITY;
// Only append usage infomation if we have a site key and the project is
// Only append usage information if we have a site key and the project is
// enabled. We do not want to record usage statistics for disabled projects.
if (!empty($site_key) && (strpos($project['project_type'], 'disabled') === FALSE)) {
// Append the site key.
......
......@@ -496,7 +496,7 @@ public static function baseFieldDefinitions($entity_type) {