eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::getBasicNodeData PHP Method

getBasicNodeData() public method

We might want to cache this, since this method is used by about every method in the location handler.
public getBasicNodeData ( mixed $nodeId ) : array
$nodeId mixed
return array
    public function getBasicNodeData($nodeId)
    {
        $query = $this->handler->createSelectQuery();
        $query->select('*')->from($this->handler->quoteTable('ezcontentobject_tree'))->where($query->expr->eq($this->handler->quoteColumn('node_id'), $query->bindValue($nodeId)));
        $statement = $query->prepare();
        $statement->execute();
        if ($row = $statement->fetch(\PDO::FETCH_ASSOC)) {
            return $row;
        }
        throw new NotFound('location', $nodeId);
    }