Automattic\WooCommerce\EmailEditor\Validator\Schema
Any_Of_Schema::nullable
Returns the schema as an array.
Метод класса: Any_Of_Schema{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Any_Of_Schema = new Any_Of_Schema(); $Any_Of_Schema->nullable(): self;
Код Any_Of_Schema::nullable() Any Of Schema::nullable WC 10.4.3
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 );
}