You are here

public function EntityLegalDocumentInterface::getAcceptances in Entity Legal 3.0.x

Same name and namespace in other branches
  1. 8.2 src/EntityLegalDocumentInterface.php \Drupal\entity_legal\EntityLegalDocumentInterface::getAcceptances()
  2. 4.0.x src/EntityLegalDocumentInterface.php \Drupal\entity_legal\EntityLegalDocumentInterface::getAcceptances()

Get the acceptances for this entity legal document revision.

Parameters

\Drupal\Core\Session\AccountInterface|null $account: The Drupal user account to check for, or get all acceptances if FALSE.

bool $published: Get acceptances only for the currently published version.

Return value

array The acceptance entities keyed by acceptance id.

1 method overrides EntityLegalDocumentInterface::getAcceptances()
EntityLegalDocument::getAcceptances in src/Entity/EntityLegalDocument.php
Get the acceptances for this entity legal document revision.

File

src/EntityLegalDocumentInterface.php, line 53

Class

EntityLegalDocumentInterface
Interface EntityLegalDocumentInterface.

Namespace

Drupal\entity_legal

Code

public function getAcceptances(AccountInterface $account = NULL, $published = TRUE);