You are here

CorrespondingReferenceStorageInterface.php in Corresponding Entity References 8.4

Namespace

Drupal\cer

File

src/CorrespondingReferenceStorageInterface.php
View source
<?php

namespace Drupal\cer;

use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
use Drupal\Core\Entity\EntityInterface;

/**
 * Defines the interface for corresponding reference storage.
 */
interface CorrespondingReferenceStorageInterface extends ConfigEntityStorageInterface {

  /**
   * Loads the valid corresponding reference config entities for the given entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity.
   *
   * @return \Drupal\cer\Entity\CorrespondingReferenceInterface[]
   *   The valid corresponding references.
   */
  public function loadValid(EntityInterface $entity);

}

Interfaces

Namesort descending Description
CorrespondingReferenceStorageInterface Defines the interface for corresponding reference storage.