class KeyValueContentEntityStorage

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php \Drupal\Core\Entity\KeyValueStore\KeyValueContentEntityStorage
  2. 10 core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php \Drupal\Core\Entity\KeyValueStore\KeyValueContentEntityStorage
  3. 8.9.x core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php \Drupal\Core\Entity\KeyValueStore\KeyValueContentEntityStorage

Provides a key value backend for content entities.

Hierarchy

Expanded class hierarchy of KeyValueContentEntityStorage

File

core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php, line 13

Namespace

Drupal\Core\Entity\KeyValueStore
View source
class KeyValueContentEntityStorage extends KeyValueEntityStorage implements ContentEntityStorageInterface {
  
  /**
   * {@inheritdoc}
   */
  public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []) {
    // @todo Complete the content entity storage implementation in
    //   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;
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.