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

Breadcrumb

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

class Validator

Same name in this branch
  1. 11.1.x vendor/ramsey/uuid/src/Rfc4122/Validator.php \Ramsey\Uuid\Rfc4122\Validator
  2. 11.1.x vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php \JsonSchema\Validator

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

@internal This class is not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\TextUI\XmlConfiguration\Validator

Expanded class hierarchy of Validator

6 string references to 'Validator'
ArgumentPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Provide a form to edit options for this plugin.
Constraint::validatedBy in vendor/symfony/validator/Constraint.php
Returns the name of the class that validates this constraint.
ExpressionSyntax::validatedBy in vendor/symfony/validator/Constraints/ExpressionSyntax.php
Returns the name of the class that validates this constraint.
ValidatorDataCollector::getName in vendor/symfony/validator/DataCollector/ValidatorDataCollector.php
Returns the name of the collector.
views.data_types.schema.yml in core/modules/views/config/schema/views.data_types.schema.yml
core/modules/views/config/schema/views.data_types.schema.yml

... See full list

File

vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Validator/Validator.php, line 23

Namespace

PHPUnit\TextUI\XmlConfiguration
View source
final class Validator {
    public function validate(DOMDocument $document, string $xsdFilename) : ValidationResult {
        $originalErrorHandling = libxml_use_internal_errors(true);
        $document->schemaValidateSource(file_get_contents($xsdFilename));
        $errors = libxml_get_errors();
        libxml_clear_errors();
        libxml_use_internal_errors($originalErrorHandling);
        return ValidationResult::fromArray($errors);
    }

}

Members

Title Sort descending Modifiers Object type Summary
Validator::validate public function

API Navigation

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