22 private readonly
string $section,
23 private readonly
string $subject,
24 private readonly
bool $allowBlankSubject,
25 private readonly
string $submitButtonLabel,
30 if ( $this->section ===
'new' &&
31 !$this->allowBlankSubject &&
32 trim( $this->subject ) ===
''
37 'missingcommentheader',
38 MessageValue::new( $this->submitButtonLabel )
if(!defined('MW_SETUP_CALLBACK'))
For a new section, do not allow the user to post with an empty subject (section title) unless they ch...
__construct(private readonly string $section, private readonly string $subject, private readonly bool $allowBlankSubject, private readonly string $submitButtonLabel,)
Status returned by edit constraints and other page editing checks.
setOK( $ok)
Change operation status.
static newGood( $value=null)
Factory function for good results.
Interface for all constraints that can prevent edits.