src/Registry/EntityRegistry.php
public function get(string $hash): ?EntityInterface
    {
        $result = null;
        $content = $this->loadContent($hash);
        if ($content !== null) {
            $result = $this->createEntityFromContent($content);
        }
        return $result;
    }
public function get(string $hash): ?EntityInterface
    {
        $result = null;
        $content = $this->loadContent($hash);
        if ($content !== null) {
            $result = $this->createEntityFromContent($content);
        }
        return $result;
    }
public function get ( string $ hash ) : ? EntityInterface { $ result = null ; $ content = $ this -> loadContent ( $ hash ) ; if ( $ content !== null ) { $ result = $ this -> createEntityFromContent ( $ content ) ; } return $ result ; }
Returns the entity with the specified hash.
@param string $hash
@return EntityInterface|null
Returns the entity with the specified hash .