ProjectStorageInterface.php in Drupal PM (Project Management) 4.x
Namespace
Drupal\pm_projectFile
modules/pm_project/src/ProjectStorageInterface.phpView source
<?php
namespace Drupal\pm_project;
use Drupal\Core\Entity\ContentEntityStorageInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\pm_project\Entity\ProjectInterface;
/**
* Defines the storage handler class for Project entities.
*
* This extends the base storage class, adding required special handling for
* Project entities.
*
* @ingroup pm_project
*/
interface ProjectStorageInterface extends ContentEntityStorageInterface {
/**
* Gets a list of Project revision IDs for a specific Project.
*
* @param \Drupal\pm_project\Entity\ProjectInterface $entity
* The Project entity.
*
* @return int[]
* Project revision IDs (in ascending order).
*/
public function revisionIds(ProjectInterface $entity);
/**
* Gets a list of revision IDs having a given user as Project author.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user entity.
*
* @return int[]
* Project revision IDs (in ascending order).
*/
public function userRevisionIds(AccountInterface $account);
}
Interfaces
Name | Description |
---|---|
ProjectStorageInterface | Defines the storage handler class for Project entities. |