src/Validator/NodeIdempotencyValidator.php
public function getIdempotencyKeys(Node $node): array
    {
        $qname = $node::schema()->getQName();
        $keys = [];

        if ($node->has('title')) {
            $keys[$this->getCacheKey($qname, SlugUtils::create($node->get('title')))] = true;
        }

        if ($node->has('slug')) {
            $keys[$this->getCacheKey($qname, $node->get('slug'))] = true;
        }

        if ($node instanceof User && $node->has('email')) {
            $keys[$this->getCacheKey($qname, $node->get('email'))] = true;
        }

        return array_keys($keys);
    }
public function getIdempotencyKeys(Node $node): array
    {
        $qname = $node::schema()->getQName();
        $keys = [];

        if ($node->has('title')) {
            $keys[$this->getCacheKey($qname, SlugUtils::create($node->get('title')))] = true;
        }

        if ($node->has('slug')) {
            $keys[$this->getCacheKey($qname, $node->get('slug'))] = true;
        }

        if ($node instanceof User && $node->has('email')) {
            $keys[$this->getCacheKey($qname, $node->get('email'))] = true;
        }

        return array_keys($keys);
    }
public function getIdempotencyKeys ( Node $ node ) : array { $ qname = $ node :: schema ( ) -> getQName ( ) ; $ keys = [ ] ; if ( $ node -> has ( 'title' ) ) { $ keys [ $ this -> getCacheKey ( $ qname , SlugUtils :: create ( $ node -> get ( 'title' ) ) ) ] = true ; } if ( $ node -> has ( 'slug' ) ) { $ keys [ $ this -> getCacheKey ( $ qname , $ node -> get ( 'slug' ) ) ] = true ; } if ( $ node instanceof User && $ node -> has ( 'email' ) ) { $ keys [ $ this -> getCacheKey ( $ qname , $ node -> get ( 'email' ) ) ] = true ; } return array_keys ( $ keys ) ; }
Derives the keys to use for the idempotency check from the node itself.

@param Node $node

@return array
Derives the keys to use for the idempotency check from the node itself .