You are here

public function LoadLocalEntityEvent::hasEntity in Acquia Content Hub 8.2

Checks whether it has an entity.

Return value

bool TRUE if it has an entity, FALSE otherwise.

File

src/Event/LoadLocalEntityEvent.php, line 90

Class

LoadLocalEntityEvent
Class LoadLocalEntityEvent.

Namespace

Drupal\acquia_contenthub\Event

Code

public function hasEntity() {
  return (bool) $this->entity;
}