RecursiveExtensionFilterIterator::$blacklist

List of directory names to skip when recursing. These directories are globally ignored in the recursive filesystem scan; i.e., extensions (of all types) are not able to use any of these names, because their directory names will be skipped. Type: array File core/lib/Drupal/Core/Extension/Discovery/RecursiveExtensionFilterIterator.php, line 56 Class RecursiveExtensionFilterIterator Filters a RecursiveDirectoryIterator to discover extensions. Namespace Drupal\Core\Extension\Discovery Code

RecursiveExtensionFilterIterator

Filters a RecursiveDirectoryIterator to discover extensions. To ensure the best possible performance for extension discovery, this filter implementation hard-codes a range of assumptions about directories in which Drupal extensions may appear and in which not. Every unnecessary subdirectory tree recursion is avoided. The list of globally ignored directory names is defined in the RecursiveExtensionFilterIterator::$blacklist property. In addition, all 'config' directories are skipped, unless the

RecursiveContextualValidator::__construct

public RecursiveContextualValidator::__construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadata_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager) Creates a validator for the given context. Parameters \Symfony\Component\Validator\Context\ExecutionContextInterface $context: The factory for creating new contexts. \Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface $metadata_factory: The metadat

RecursiveContextualValidator::validatePropertyValue

public RecursiveContextualValidator::validatePropertyValue($object, $property_name, $value, $groups = NULL) Validates a value against the constraints specified for an object's property. Parameters object|string $objectOrClass The object or its class name: string $propertyName The name of the property: mixed $value The value to validate against the: property's constraints array|null $groups The validation groups to validate. If: none is given, "Default" is assumed Return value ContextualValida

RecursiveContextualValidator::validateProperty

public RecursiveContextualValidator::validateProperty($object, $propertyName, $groups = NULL) Validates a property of an object against the constraints specified for this property. Parameters object $object The object: string $propertyName The name of the validated property: array|null $groups The validation groups to validate. If: none is given, "Default" is assumed Return value ContextualValidatorInterface This validator Overrides ContextualValidatorInterface::validateProperty File core/lib

RecursiveContextualValidator::validateNode

protected RecursiveContextualValidator::validateNode(TypedDataInterface $data, $constraints = NULL, $is_root_call = FALSE) Validates a Typed Data node in the validation tree. If no constraints are passed, the data is validated against the constraints specified in its data definition. If the data is complex or a list and no constraints are passed, the contained properties or list items are validated recursively. Parameters \Drupal\Core\TypedData\TypedDataInterface $data: The data to validated.

RecursiveContextualValidator::validateConstraints

protected RecursiveContextualValidator::validateConstraints($value, $cache_key, $constraints) Validates a node's value against all constraints in the given group. Parameters mixed $value: The validated value. string $cache_key: The cache key used internally to ensure we don't validate the same constraint twice. \Symfony\Component\Validator\Constraint[] $constraints: The constraints which should be ensured for the given value. File core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualVa

RecursiveContextualValidator::validate

public RecursiveContextualValidator::validate($data, $constraints = NULL, $groups = NULL, $is_root_call = TRUE) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint \Symfony\Component\Validator\Constraints\Valid is assumed. Parameters mixed $value: The value to validate \Symfony\Component\Validator\Constraint|\Symfony\Component\Validator\Constraint[] $constraints: The constraint(s) to validate against. array|null $groups: The validation gr

RecursiveContextualValidator::getViolations

public RecursiveContextualValidator::getViolations() Returns the violations that have been generated so far in the context of the validator. Return value ConstraintViolationListInterface The constraint violations Overrides ContextualValidatorInterface::getViolations File core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 192 Class RecursiveContextualValidator Defines a recursive contextual validator for Typed Data. Namespace Drupal\Core\TypedData\Validatio

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 RecursiveContext