Automattic\WooCommerce\EmailEditor\Validator\Schema

Any_Of_Schema::non_nullable │ public │ WC 1.0

Returns the schema as an array.

Метод класса: Any_Of_Schema{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Any_Of_Schema = new Any_Of_Schema();
$Any_Of_Schema->non_nullable(): self;

Код Any_Of_Schema::non_nullable() WC 11.2.2

public function non_nullable(): self {
	$null   = array( 'type' => 'null' );
	$any_of = $this->schema['any_of'];
	$value  = array_filter(
		$any_of,
		function ( $item ) use ( $null ) {
			return $item !== $null;
		}
	);
	return $this->update_schema_property( 'any_of', $value );
}