You are here

public function ContentHubEntityEligibilityEvent::__construct in Acquia Content Hub 8.2

ContentHubEntityEligibilityEvent constructor.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity being evaluated for eligibility.

string $op: Whether this is being inserted or updated.

File

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

Class

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

Namespace

Drupal\acquia_contenthub_publisher\Event

Code

public function __construct(EntityInterface $entity, $op) {
  $this->entity = $entity;
  $this->operation = $op;
}