OpignoAnswerStorageInterface.php in Opigno module 8
Same filename and directory in other branches
Namespace
Drupal\opigno_moduleFile
src/OpignoAnswerStorageInterface.phpView source
<?php
namespace Drupal\opigno_module;
use Drupal\Core\Entity\ContentEntityStorageInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\opigno_module\Entity\OpignoAnswerInterface;
/**
* Defines the storage handler class for Answer entities.
*
* This extends the base storage class, adding required special handling for
* Answer entities.
*
* @ingroup opigno_module
*/
interface OpignoAnswerStorageInterface extends ContentEntityStorageInterface {
/**
* Gets a list of Answer revision IDs for a specific Answer.
*
* @param \Drupal\opigno_module\Entity\OpignoAnswerInterface $entity
* The Answer entity.
*
* @return int[]
* Answer revision IDs (in ascending order).
*/
public function revisionIds(OpignoAnswerInterface $entity);
/**
* Gets a list of revision IDs having a given user as Answer author.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user entity.
*
* @return int[]
* Answer revision IDs (in ascending order).
*/
public function userRevisionIds(AccountInterface $account);
/**
* Counts the number of revisions in the default language.
*
* @param \Drupal\opigno_module\Entity\OpignoAnswerInterface $entity
* The Answer entity.
*
* @return int
* The number of revisions in the default language.
*/
public function countDefaultLanguageRevisions(OpignoAnswerInterface $entity);
/**
* Unsets the language for all Answer with the given language.
*
* @param \Drupal\Core\Language\LanguageInterface $language
* The language object.
*/
public function clearRevisionsLanguage(LanguageInterface $language);
}
Interfaces
Name![]() |
Description |
---|---|
OpignoAnswerStorageInterface | Defines the storage handler class for Answer entities. |