workflow_participants-8.x-2.x-dev/src/WorkflowParticipantsStorageInterface.php
src/WorkflowParticipantsStorageInterface.php
<?php
namespace Drupal\workflow_participants;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\ContentEntityStorageInterface;
/**
* Defines workflow participants storage interface.
*/
interface WorkflowParticipantsStorageInterface extends ContentEntityStorageInterface {
/**
* Loads or creates a workflow participant entity for a given entity.
*
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity being moderated.
*
* @return \Drupal\workflow_participants\Entity\WorkflowParticipantsInterface
* The workflow participants entity for the given moderated entity.
*/
public function loadForModeratedEntity(ContentEntityInterface $entity);
}
