6aa18ff84098b62d606b8f6251b428e54c7f5a22
[yaffs-website] / web / core / lib / Drupal / Core / Entity / KeyValueStore / KeyValueContentEntityStorage.php
1 <?php
2
3 namespace Drupal\Core\Entity\KeyValueStore;
4
5 use Drupal\Core\Entity\ContentEntityInterface;
6 use Drupal\Core\Entity\ContentEntityStorageInterface;
7 use Drupal\Core\Entity\RevisionableInterface;
8 use Drupal\Core\Entity\TranslatableInterface;
9
10 /**
11  * Provides a key value backend for content entities.
12  */
13 class KeyValueContentEntityStorage extends KeyValueEntityStorage implements ContentEntityStorageInterface {
14
15   /**
16    * {@inheritdoc}
17    */
18   public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []) {
19     // @todo Complete the content entity storage implementation in
20     //   https://www.drupal.org/node/2618436.
21   }
22
23   /**
24    * {@inheritdoc}
25    */
26   public function hasStoredTranslations(TranslatableInterface $entity) {
27     return FALSE;
28   }
29
30   /**
31    * {@inheritdoc}
32    */
33   public function createRevision(RevisionableInterface $entity, $default = TRUE, $keep_untranslatable_fields = NULL) {
34     return NULL;
35   }
36
37   /**
38    * {@inheritdoc}
39    */
40   public function createWithSampleValues($bundle = FALSE, array $values = []) {}
41
42   /**
43    * {@inheritdoc}
44    */
45   public function loadMultipleRevisions(array $revision_ids) {
46     return [];
47   }
48
49   /**
50    * {@inheritdoc}
51    */
52   public function getLatestRevisionId($entity_id) {
53     return NULL;
54   }
55
56   /**
57    * {@inheritdoc}
58    */
59   public function getLatestTranslationAffectedRevisionId($entity_id, $langcode) {
60     return NULL;
61   }
62
63 }