Pimcore\Model\Document\Listing::key PHP Method

key() public method

Returns the current listing row key.
public key ( ) : mixed
return mixed
    public function key()
    {
        $this->getDocuments();
        $var = key($this->documents);
        return $var;
    }