public function 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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Validation!RecursiveContextualValidator.php/function/RecursiveContextualValidator::atPath/8.1.x