Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstraintInterface.php

function ConstraintInterface::addError

adds an error

Parameters

JsonPointer|null $path:

string $message:

string $constraint the constraint/rule that is broken, e.g.: 'minLength':

array $more more array elements to add to the error:

File

vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php, line 43

Class

ConstraintInterface
The Constraints Interface

Namespace

JsonSchema\Constraints

Code

public function addError(?JsonPointer $path, $message, $constraint = '', ?array $more = null);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal