MailPoet\EmailEditor\Validator\Schema
Any_Of_Schema::nullable()
Returns the schema as an array.
Method of the class: Any_Of_Schema{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Any_Of_Schema = new Any_Of_Schema(); $Any_Of_Schema->nullable(): self;
Any_Of_Schema::nullable() Any Of Schema::nullable code WC 9.8.1
public function nullable(): self { $null = array( 'type' => 'null' ); $any_of = $this->schema['anyOf']; $value = in_array( $null, $any_of, true ) ? $any_of : array_merge( $any_of, array( $null ) ); return $this->update_schema_property( 'anyOf', $value ); }