3 namespace Drupal\Core\Entity\KeyValueStore;
5 use Drupal\Core\Entity\ContentEntityInterface;
6 use Drupal\Core\Entity\ContentEntityStorageInterface;
7 use Drupal\Core\Entity\RevisionableInterface;
8 use Drupal\Core\Entity\TranslatableInterface;
11 * Provides a key value backend for content entities.
13 class KeyValueContentEntityStorage extends KeyValueEntityStorage implements ContentEntityStorageInterface {
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.
26 public function hasStoredTranslations(TranslatableInterface $entity) {
33 public function createRevision(RevisionableInterface $entity, $default = TRUE, $keep_untranslatable_fields = NULL) {
40 public function createWithSampleValues($bundle = FALSE, array $values = []) {}
45 public function loadMultipleRevisions(array $revision_ids) {
52 public function getLatestRevisionId($entity_id) {
59 public function getLatestTranslationAffectedRevisionId($entity_id, $langcode) {