KeyValueContentEntityStorage.php in Drupal 9
File
core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php
View source
<?php
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;
class KeyValueContentEntityStorage extends KeyValueEntityStorage implements ContentEntityStorageInterface {
public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []) {
}
public function hasStoredTranslations(TranslatableInterface $entity) {
return FALSE;
}
public function createRevision(RevisionableInterface $entity, $default = TRUE, $keep_untranslatable_fields = NULL) {
return NULL;
}
public function createWithSampleValues($bundle = FALSE, array $values = []) {
}
public function loadMultipleRevisions(array $revision_ids) {
return [];
}
public function getLatestRevisionId($entity_id) {
return NULL;
}
public function getLatestTranslationAffectedRevisionId($entity_id, $langcode) {
return NULL;
}
}