public function ContentHubEntityEligibilityEvent::setCalculateDependencies in Acquia Content Hub 8.2
Set whether the entity should go through a full dependency calculation.
Parameters
bool $calculate_dependencies: TRUE if full dependency calculation should be performed; FALSE otherwise.
Throws
\Exception
File
- modules/
acquia_contenthub_publisher/ src/ Event/ ContentHubEntityEligibilityEvent.php, line 125
Class
- ContentHubEntityEligibilityEvent
- Event fired for eligibility of an entity to POST to ContentHub.
Namespace
Drupal\acquia_contenthub_publisher\EventCode
public function setCalculateDependencies($calculate_dependencies) {
if (!is_bool($calculate_dependencies)) {
throw new \Exception("calculateDependencies must be a boolean value.");
}
$this->calculateDependencies = $calculate_dependencies;
}