ReadonlymodeConstraint.php in Read only mode 2.0.x
File
src/Plugin/Validation/Constraint/ReadonlymodeConstraint.phpView source
<?php
namespace Drupal\readonlymode\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Checks if the site is in read-only mode and fails validation if so.
*
* @Constraint(
* id = "ReadonlymodeConstraint",
* label = @Translation("Read-only mode", context = "Validation"),
* )
*/
class ReadonlymodeConstraint extends Constraint {
}
Classes
Name | Description |
---|---|
ReadonlymodeConstraint | Checks if the site is in read-only mode and fails validation if so. |