Yoast\WP\SEO\Abilities\User_Interface\Abilities
Update_Site_Representation_Ability::to_output_schema
Reduces a field's input schema to its output schema: the input constraints (like the minimum of an ID) would only make the output validation fail on values that were saved before.
Метод класса: Update_Site_Representation_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.
Код Update_Site_Representation_Ability::to_output_schema() Update Site Representation Ability::to output schema Yoast 28.8
private function to_output_schema( array $schema ): array {
return \array_intersect_key( $schema, \array_flip( [ 'type', 'description' ] ) );
}