28 if ( $this->readOnlyMode->isReadOnly() ) {
30 ->
setValue( self::AS_READ_ONLY_PAGE )
31 ->setErrorFunction(
static fn () =>
throw new ReadOnlyError() );
if(!defined('MW_SETUP_CALLBACK'))
Abstract class for all constraints that can prevent edits.
Verify site is not in read only mode.
__construct(private readonly ReadOnlyMode $readOnlyMode,)
Status returned by edit constraints and other page editing checks.
setValue(int $value)
Sets the value of the status.
static newFatal( $message,... $parameters)
Factory function for fatal errors.
static newGood( $value=null)
Factory function for good results.