application/Espo/Core/Upgrades/Actions/Extension/Uninstall.php
protected function getExtensionEntity()
    {
        if (!isset($this->extensionEntity)) {
            $processId = $this->getProcessId();
            $this->extensionEntity = $this->getEntityManager()->getEntity('Extension', $processId);
            if (!isset($this->extensionEntity)) {
                throw new Error('Extension Entity not found.');
            }
        }

        return $this->extensionEntity;
    }
protected function getExtensionEntity()
    {
        if (!isset($this->extensionEntity)) {
            $processId = $this->getProcessId();
            $this->extensionEntity = $this->getEntityManager()->getEntity('Extension', $processId);
            if (!isset($this->extensionEntity)) {
                throw new Error('Extension Entity not found.');
            }
        }

        return $this->extensionEntity;
    }
protected function getExtensionEntity ( ) { if ( ! isset ( $ this -> extensionEntity ) ) { $ processId = $ this -> getProcessId ( ) ; $ this -> extensionEntity = $ this -> getEntityManager ( ) -> getEntity ( 'Extension' , $ processId ) ; if ( ! isset ( $ this -> extensionEntity ) ) { throw new Error ( 'Extension Entity not found.' ) ; } } return $ this -> extensionEntity ; }
Get entity of this extension

@return \Espo\Entities\Extension
Get entity of this extension