Yoast\WP\SEO\Abilities\User_Interface\Abilities
Abstract_Archive_And_Special_Page_SEO_Settings_Ability::to_output_schema
Reduces a field's input schema to its output schema: the input constraints would only make the output validation fail on values that were saved before.
Метод класса: Abstract_Archive_And_Special_Page_SEO_Settings_Ability{}
Хуков нет.
Возвращает
array<string, mixed>. The output schema of the field.
Использование
// private - только в коде основоного (родительского) класса $result = $this->to_output_schema( $schema ): array;
- $schema(array<string, mixed>) (обязательный)
- The input schema of the field.
Код Abstract_Archive_And_Special_Page_SEO_Settings_Ability::to_output_schema() Abstract Archive And Special Page SEO Settings Ability::to output schema Yoast 28.9
private function to_output_schema( array $schema ): array {
return \array_intersect_key( $schema, \array_flip( [ 'type', 'description' ] ) );
}