diff --git a/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php b/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php index ed3d061..b39d900 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php @@ -329,7 +329,7 @@ public function getTableMapping() { // the language code of the default revision. ->setExtraColumns($this->dataTable, array('default_langcode')); - $revision_base_fields = array_merge(array($this->idKey, $this->revisionKey, $this->langcodeKey), $revisin_metadata_fields); + $revision_base_fields = array_merge(array($this->idKey, $this->revisionKey, $this->langcodeKey), $revision_metadata_fields); $this->tableMapping->setFieldNames($this->revisionTable, $revision_base_fields); $revision_data_key_fields = array($this->idKey, $this->revisionKey, $this->langcodeKey); diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index 04a83f1..b73de24 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -140,6 +140,16 @@ public function getKey($key); */ public function hasKey($key); + /** + * Sets a specific entity key. + * + * @param string $key + * The name of the entity key to return. + * @param string $value + * The new value of the key. + * + * @return $this + */ public function setKey($key, $value); /** diff --git a/core/modules/views/tests/Drupal/views/Tests/EntityViewsDataTest.php b/core/modules/views/tests/Drupal/views/Tests/EntityViewsDataTest.php index 5ce652b..5f0a8c7 100644 --- a/core/modules/views/tests/Drupal/views/Tests/EntityViewsDataTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/EntityViewsDataTest.php @@ -7,8 +7,8 @@ namespace Drupal\views\Tests { - use Drupal\Core\Entity\ContentEntityType; - use Drupal\Core\Entity\EntityType; +use Drupal\Core\Entity\ContentEntityType; +use Drupal\Core\Entity\EntityType; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem; use Drupal\Core\Field\Plugin\Field\FieldType\IntegerItem; @@ -22,7 +22,7 @@ use Drupal\views\EntityViewsData; use Symfony\Component\DependencyInjection\ContainerBuilder; -/** + /** * @coversDefaultClass \Drupal\views\EntityViewsData * @group Views */