RecursiveContextualValidator::atPath

public RecursiveContextualValidator::atPath($path)

Appends the given path to the property path of the context.

If called multiple times, the path will always be reset to the context's original path with the given path appended to it.

Parameters

string $path The path to append:

Return value

ContextualValidatorInterface This validator

Overrides ContextualValidatorInterface::atPath

File

core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 75

Class

RecursiveContextualValidator
Defines a recursive contextual validator for Typed Data.

Namespace

Drupal\Core\TypedData\Validation

Code

public function atPath($path) {
  // @todo This method is not used at the moment, see
  //   https://www.drupal.org/node/2482527
  return $this;
}
doc_Drupal
2016-10-29 09:36:45
Comments
Leave a Comment

Please login to continue.