You are here

public function ContentHubEntityEligibilityEvent::setEligibility in Acquia Content Hub 8.2

Set the eligibility of this entity for the ContentHub queue.

Parameters

bool $eligible: TRUE if eligible; FALSE otherwise.

Throws

\Exception

File

modules/acquia_contenthub_publisher/src/Event/ContentHubEntityEligibilityEvent.php, line 100

Class

ContentHubEntityEligibilityEvent
Event fired for eligibility of an entity to POST to ContentHub.

Namespace

Drupal\acquia_contenthub_publisher\Event

Code

public function setEligibility($eligible) {
  if (!is_bool($eligible)) {
    throw new \Exception("Eligibility must be a boolean value.");
  }
  $this->eligibility = $eligible;
}