28 if ( $this->readOnlyMode->isReadOnly() ) {
29 return PageEditStatus::newFatal(
'readonlytext' )
30 ->
setValue( self::AS_READ_ONLY_PAGE )
31 ->setErrorFunction(
static fn () =>
throw new ReadOnlyError() );
33 return PageEditStatus::newGood();
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.