GraphQL\Schema::getDirective PHP Méthode

getDirective() public méthode

public getDirective ( $name ) : Directive
$name
Résultat GraphQL\Type\Definition\Directive
    public function getDirective($name)
    {
        foreach ($this->getDirectives() as $directive) {
            if ($directive->name === $name) {
                return $directive;
            }
        }
        return null;
    }