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