Commit 1455cb13 authored by catch's avatar catch

Issue #2857857 by vegantriathlete, Jo Fitzgerald, snehi, plach, xjm,...

Issue #2857857 by vegantriathlete, Jo Fitzgerald, snehi, plach, xjm, Skabbkladden: Check use of "it's" in core to ensure proper use
parent 441ea0e2
......@@ -413,7 +413,7 @@ protected function alterTable($table, $old_schema, $new_schema, array $mapping =
// Now add the fields.
foreach ($mapping as $field_alias => $field_source) {
// Just ignore this field (ie. use it's default value).
// Just ignore this field (ie. use its default value).
if (!isset($field_source)) {
continue;
}
......
......@@ -174,7 +174,7 @@ public function updateFields(array $fields) {
* Specifies fields to be updated as an expression.
*
* Expression fields are cases such as counter = counter + 1. This method
* takes precedence over MergeQuery::updateFields() and it's wrappers,
* takes precedence over MergeQuery::updateFields() and its wrappers,
* MergeQuery::key() and MergeQuery::fields().
*
* @param $field
......
......@@ -63,7 +63,7 @@ class EntityReferenceSelection extends Plugin {
public $entity_types = [];
/**
* The weight of the plugin in it's group.
* The weight of the plugin in its group.
*
* @var int
*/
......
......@@ -39,7 +39,7 @@ public function getInfo() {
$info['#validate_reference'] = TRUE;
// IMPORTANT! This should only be set to FALSE if the #default_value
// property is processed at another level (e.g. by a Field API widget) and
// it's value is properly checked for access.
// its value is properly checked for access.
$info['#process_default_value'] = TRUE;
$info['#element_validate'] = [[$class, 'validateEntityAutocomplete']];
......
......@@ -449,7 +449,7 @@ public function groupBy($field, $langcode = NULL) {
}
/**
* Generates an alias for a field and it's aggregated function.
* Generates an alias for a field and its aggregated function.
*
* @param string $field
* The field name used in the alias.
......
......@@ -127,7 +127,7 @@ protected function setElementErrorsFromFormState(array &$form, FormStateInterfac
}
// Additionally store the errors of the direct child itself, keyed by
// it's parent elements structure.
// its parent elements structure.
if (!empty($child['#errors'])) {
$child_parents = implode('][', $child['#array_parents']);
$children_errors[$child_parents] = $child['#errors'];
......
......@@ -218,7 +218,7 @@ protected function doRender(&$elements, $is_root_call = FALSE) {
// Early-return nothing if user does not have access.
if (isset($elements['#access'])) {
// If #access is an AccessResultInterface object, we must apply it's
// If #access is an AccessResultInterface object, we must apply its
// cacheability metadata to the render array.
if ($elements['#access'] instanceof AccessResultInterface) {
$this->addCacheableDependency($elements, $elements['#access']);
......
......@@ -224,7 +224,7 @@
background: transparent;
}
/* Prevent list item from expanding it's container. */
/* Prevent list item from expanding its container. */
#drupal-off-canvas td ul.dropbutton li.edit {
width: 2em;
height: 2em;
......
......@@ -69,7 +69,7 @@ public function getChildRelativeDepth($book_link, $max_depth);
public function delete($nid);
/**
* Loads book's children using it's parent ID.
* Loads book's children using its parent ID.
*
* @param int $pid
* The book's parent ID.
......
......@@ -688,7 +688,7 @@ public function entityFormSubmit($form, FormStateInterface $form_state) {
// after the entity has been validated, so that it does not break the
// EntityChanged constraint validator. The content translation metadata
// field for the changed timestamp does not have such a constraint defined
// at the moment, but it is correct to update it's value in a submission
// at the moment, but it is correct to update its value in a submission
// handler as well and have the same logic like in the Form API.
if ($entity->hasField('content_translation_changed')) {
$metadata = $this->manager->getTranslationMetadata($entity);
......
......@@ -86,7 +86,7 @@ public function testReEnabledField() {
$this->assertRaw('<a href="tel:123456789">');
// Test that the module can't be uninstalled from the UI while there is data
// for it's fields.
// for its fields.
$admin_user = $this->drupalCreateUser(['access administration pages', 'administer modules']);
$this->drupalLogin($admin_user);
$this->drupalGet('admin/modules/uninstall');
......
......@@ -67,7 +67,7 @@ protected function setUp($import_test_views = TRUE) {
// Create reference from entity_test_mul to entity_test.
$this->createEntityReferenceField('entity_test_mul', 'entity_test_mul', 'field_data_test', 'field_data_test', 'entity_test');
// Create another field for testing with a long name. So it's storage name
// Create another field for testing with a long name. So its storage name
// will become hashed. Use entity_test_mul_changed, so the resulting field
// tables created will be greater than 48 chars long.
// @see \Drupal\Core\Entity\Sql\DefaultTableMapping::generateFieldTableName()
......
......@@ -227,7 +227,7 @@ public static function deleteContentEntities($entity_type_id, &$context) {
$storage->delete($entities);
}
// Sometimes deletes cause secondary deletes. For example, deleting a
// taxonomy term can cause it's children to be be deleted too.
// taxonomy term can cause its children to be be deleted too.
$context['sandbox']['progress'] = $context['sandbox']['max'] - $storage->getQuery()->count()->execute();
// Inform the batch engine that we are not finished and provide an
......
......@@ -390,7 +390,7 @@ public function testUninstallingThemes() {
// Check that bartik can be uninstalled now.
$this->assertRaw('Uninstall Bartik theme', 'A link to uninstall the Bartik theme does appear on the theme settings page.');
// Check that the classy theme still can't be uninstalled as neither of it's
// Check that the classy theme still can't be uninstalled as neither of its
// base themes have been.
$this->assertNoRaw('Uninstall Classy theme', 'A link to uninstall the Classy theme does not appear on the theme settings page.');
......
......@@ -387,7 +387,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) {
views_invalidate_cache();
$this->invalidateCaches();
// Rebuild the router if this is a new view, or it's status changed.
// Rebuild the router if this is a new view, or its status changed.
if (!isset($this->original) || ($this->status() != $this->original->status())) {
\Drupal::service('router.builder')->setRebuildNeeded();
}
......
......@@ -118,7 +118,7 @@ public function getAvailableGlobalTokens($prepared = FALSE, array $types = []);
/**
* Flattens the structure of form elements.
*
* If a form element has #flatten = TRUE, then all of it's children get moved
* If a form element has #flatten = TRUE, then all of its children get moved
* to the same level as the element itself. So $form['to_be_flattened'][$key]
* becomes $form[$key], and $form['to_be_flattened'] gets unset.
*
......
......@@ -23,7 +23,7 @@
class Fields extends RowPluginBase {
/**
* Does the row plugin support to add fields to it's output.
* Does the row plugin support to add fields to its output.
*
* @var bool
*/
......
......@@ -18,7 +18,7 @@
class OpmlFields extends RowPluginBase {
/**
* Does the row plugin support to add fields to it's output.
* Does the row plugin support to add fields to its output.
*
* @var bool
*/
......
......@@ -43,7 +43,7 @@
protected $usesOptions = TRUE;
/**
* Does the row plugin support to add fields to it's output.
* Does the row plugin support to add fields to its output.
*
* @var bool
*/
......
......@@ -19,7 +19,7 @@
class RssFields extends RowPluginBase {
/**
* Does the row plugin support to add fields to it's output.
* Does the row plugin support to add fields to its output.
*
* @var bool
*/
......
......@@ -71,7 +71,7 @@
protected $usesGrouping = TRUE;
/**
* Does the style plugin for itself support to add fields to it's output.
* Does the style plugin for itself support to add fields to its output.
*
* This option only makes sense on style plugins without row plugins, like
* for example table.
......
......@@ -23,7 +23,7 @@
class Table extends StylePluginBase implements CacheableDependencyInterface {
/**
* Does the style plugin for itself support to add fields to it's output.
* Does the style plugin for itself support to add fields to its output.
*
* @var bool
*/
......
......@@ -331,7 +331,7 @@ class ViewExecutable {
protected $request;
/**
* Does this view already have loaded it's handlers.
* Does this view already have loaded its handlers.
*
* @todo Group with other static properties.
*
......
......@@ -184,7 +184,7 @@ public function testViewStatus() {
$view = $this->randomView();
$id = $view['id'];
// The view should initially have the enabled class on it's form wrapper.
// The view should initially have the enabled class on its form wrapper.
$this->drupalGet('admin/structure/views/view/' . $id);
$elements = $this->xpath('//div[contains(@class, :edit) and contains(@class, :status)]', [':edit' => 'views-edit-view', ':status' => 'enabled']);
$this->assertTrue($elements, 'The enabled class was found on the form wrapper');
......
......@@ -172,7 +172,7 @@ public function waitOnAutocomplete() {
}
/**
* Test that a node, or it's specific corner, is visible in the viewport.
* Test that a node, or its specific corner, is visible in the viewport.
*
* Note: Always set the viewport size. This can be done with a PhantomJS
* startup parameter or in your test with \Behat\Mink\Session->resizeWindow().
......@@ -255,7 +255,7 @@ public function assertNotVisibleInViewport($selector_type, $selector, $corner =
}
/**
* Check the visibility of a node, or it's specific corner.
* Check the visibility of a node, or its specific corner.
*
* @param \Behat\Mink\Element\NodeElement $node
* A valid node.
......
......@@ -22,7 +22,7 @@ class UpdaterTest extends KernelTestBase {
* @see https://drupal.org/node/2409515
*/
public function testGetProjectTitleWithChild() {
// Get the project title from it's directory. If it can't find the title
// Get the project title from its directory. If it can't find the title
// it will choose the first project title in the directory.
$directory = \Drupal::root() . '/core/modules/system/tests/modules/module_handler_test_multiple';
$title = Updater::getProjectTitle($directory);
......
......@@ -224,7 +224,7 @@
background: transparent;
}
/* Prevent list item from expanding it's container. */
/* Prevent list item from expanding its container. */
#drupal-off-canvas td ul.dropbutton li.edit {
width: 2em;
height: 2em;
......
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