/** * Get the currently accessed entity from the site. * * @return false|DocumentationEntity */ function getEntity() { if ($this->entity) { return DocumentationService::is_registered_entity($this->entity, $this->version, $this->language); } return false; }