public function StubTracker::hasStub in Acquia Content Hub 8.2
Checks if a stub is being tracked.
Parameters
string $entity_type: The entity type.
int|string|null $entity_id: The entity ID.
Return value
bool Whether a stub is being tracked or not.
File
- src/
StubTracker.php, line 166
Class
- StubTracker
- Class StubTracker.
Namespace
Drupal\acquia_contenthubCode
public function hasStub($entity_type, $entity_id) : bool {
return isset($this->stubs[$entity_type]) && in_array($entity_id, $this->stubs[$entity_type]);
}