X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FKeyValueStore%2FKeyValueContentEntityStorage.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FKeyValueStore%2FKeyValueContentEntityStorage.php;h=6aa18ff84098b62d606b8f6251b428e54c7f5a22;hp=c42e7c0de5430c015f57037fc1046001a11623ac;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php b/web/core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php index c42e7c0de..6aa18ff84 100644 --- a/web/core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php +++ b/web/core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php @@ -4,6 +4,8 @@ namespace Drupal\Core\Entity\KeyValueStore; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\ContentEntityStorageInterface; +use Drupal\Core\Entity\RevisionableInterface; +use Drupal\Core\Entity\TranslatableInterface; /** * Provides a key value backend for content entities. @@ -18,4 +20,44 @@ class KeyValueContentEntityStorage extends KeyValueEntityStorage implements Cont // https://www.drupal.org/node/2618436. } + /** + * {@inheritdoc} + */ + public function hasStoredTranslations(TranslatableInterface $entity) { + return FALSE; + } + + /** + * {@inheritdoc} + */ + public function createRevision(RevisionableInterface $entity, $default = TRUE, $keep_untranslatable_fields = NULL) { + return NULL; + } + + /** + * {@inheritdoc} + */ + public function createWithSampleValues($bundle = FALSE, array $values = []) {} + + /** + * {@inheritdoc} + */ + public function loadMultipleRevisions(array $revision_ids) { + return []; + } + + /** + * {@inheritdoc} + */ + public function getLatestRevisionId($entity_id) { + return NULL; + } + + /** + * {@inheritdoc} + */ + public function getLatestTranslationAffectedRevisionId($entity_id, $langcode) { + return NULL; + } + }