Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\Core\Validation\Plugin\Validation\Constraint; use Drupal\Core\Str..
Decoded Output download
<?php
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraints\Regex;
/**
* Regex constraint.
*
* Overrides the symfony constraint to use Drupal-style replacement patterns.
*/
#[Constraint(
id: 'Regex',
label: new TranslatableMarkup('Regex', [], ['context' => 'Validation'])
)]
class RegexConstraint extends Regex {
/**
* {@inheritdoc}
*/
public function validatedBy(): string {
return '\Symfony\Component\Validator\Constraints\RegexValidator';
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraints\Regex;
/**
* Regex constraint.
*
* Overrides the symfony constraint to use Drupal-style replacement patterns.
*/
#[Constraint(
id: 'Regex',
label: new TranslatableMarkup('Regex', [], ['context' => 'Validation'])
)]
class RegexConstraint extends Regex {
/**
* {@inheritdoc}
*/
public function validatedBy(): string {
return '\Symfony\Component\Validator\Constraints\RegexValidator';
}
}
Function Calls
None |
Stats
MD5 | 9a6a33bb37fa4eddea38a1f2041b3f54 |
Eval Count | 0 |
Decode Time | 90 ms |