cas-8.x-1.x-dev/src/Plugin/Validation/Constraint/CasProtectedUserFieldConstraint.php
src/Plugin/Validation/Constraint/CasProtectedUserFieldConstraint.php
<?php
declare(strict_types=1);
namespace Drupal\cas\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraint;
/**
* Checks if the plain text password is provided for editing a protected field.
*/
#[Constraint(
id: 'CasProtectedUserField',
label: new TranslatableMarkup('Password required for protected field change', [], ['context' => 'Validation']),
)]
class CasProtectedUserFieldConstraint extends ProtectedUserFieldConstraint {
}
