MailPoet\EmailEditor\Validator

Schema::nullable()publicWC 1.0

Sets the schema as nullable.

Method of the class: Schema{}

No Hooks.

Return

static.

Usage

$Schema = new Schema();
$Schema->nullable();

Schema::nullable() code WC 9.8.1

public function nullable() {
	$type = $this->schema['type'] ?? array( 'null' );
	return $this->update_schema_property( 'type', is_array( $type ) ? $type : array( $type, 'null' ) );
}