From 72f1f1f81fa0896a76c92e9cd6f476b49f948262 Mon Sep 17 00:00:00 2001 From: quietone <quietone@2572884.no-reply.drupal.org> Date: Wed, 22 Feb 2023 16:29:29 +1300 Subject: [PATCH] Issue #2031917 by fgm, YesCT, penyaskito, plach, smustgrave: Docs follow-up Entity Translation API improvements --- core/lib/Drupal/Core/Entity/ContentEntityBase.php | 8 ++++---- core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 7521601cd58a..9802c3df8da9 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -80,7 +80,7 @@ abstract class ContentEntityBase extends EntityBase implements \IteratorAggregat * Language code identifying the entity active language. * * This is the language field accessors will use to determine which field - * values manipulate. + * values to manipulate. * * @var string */ @@ -97,8 +97,8 @@ abstract class ContentEntityBase extends EntityBase implements \IteratorAggregat * An array of entity translation metadata. * * An associative array keyed by translation language code. Every value is an - * array containing the translation status and the translation object, if it has - * already been instantiated. + * array containing the translation status and the translation object, if it + * has already been instantiated. * * @var array */ @@ -502,7 +502,7 @@ public function setValidationRequired($required) { } /** - * Clear entity translation object cache to remove stale references. + * Clears entity translation object cache to remove stale references. */ protected function clearTranslationCache() { foreach ($this->translations as &$translation) { diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index 7e18e5bca1f4..dab7aa7ca8cc 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -834,7 +834,7 @@ public function deleteRevision($revision_id) { abstract protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision); /** - * Checks translation statuses and invoke the related hooks if needed. + * Checks translation statuses and invokes the related hooks if needed. * * @param \Drupal\Core\Entity\ContentEntityInterface $entity * The entity being saved. -- GitLab