You are here

ReadonlymodeConstraint.php in Read only mode 2.0.x

File

src/Plugin/Validation/Constraint/ReadonlymodeConstraint.php
View 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

Namesort descending Description
ReadonlymodeConstraint Checks if the site is in read-only mode and fails validation if so.