generated Organisation entity

This commit is contained in:
Naomi
2020-11-12 17:13:28 +00:00
parent 17f8ddba2e
commit 675a85dfb6
32 changed files with 2098 additions and 0 deletions

View File

@ -0,0 +1,61 @@
<?php
namespace Drupal\opencase_entities;
use Drupal\Core\Entity\ContentEntityStorageInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\opencase_entities\Entity\OCOrganisationInterface;
/**
* Defines the storage handler class for Organisation entities.
*
* This extends the base storage class, adding required special handling for
* Organisation entities.
*
* @ingroup opencase_entities
*/
interface OCOrganisationStorageInterface extends ContentEntityStorageInterface {
/**
* Gets a list of Organisation revision IDs for a specific Organisation.
*
* @param \Drupal\opencase_entities\Entity\OCOrganisationInterface $entity
* The Organisation entity.
*
* @return int[]
* Organisation revision IDs (in ascending order).
*/
public function revisionIds(OCOrganisationInterface $entity);
/**
* Gets a list of revision IDs having a given user as Organisation author.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user entity.
*
* @return int[]
* Organisation revision IDs (in ascending order).
*/
public function userRevisionIds(AccountInterface $account);
/**
* Counts the number of revisions in the default language.
*
* @param \Drupal\opencase_entities\Entity\OCOrganisationInterface $entity
* The Organisation entity.
*
* @return int
* The number of revisions in the default language.
*/
public function countDefaultLanguageRevisions(OCOrganisationInterface $entity);
/**
* Unsets the language for all Organisation with the given language.
*
* @param \Drupal\Core\Language\LanguageInterface $language
* The language object.
*/
public function clearRevisionsLanguage(LanguageInterface $language);
}