Yoast\WP\SEO\Abilities\Infrastructure
Abstract_Field_Map::resolve_extra_keys
Resolves the keys next to the schema that only the extending class knows about.
Метод класса: Abstract_Field_Map{}
Хуков нет.
Возвращает
array<string, mixed>|null. The JSON schema without those keys, or null to drop the field.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->resolve_extra_keys( $field_name, $schema ): ?array;
- $field_name(строка) (обязательный)
- The name of the field.
- $schema(array<string, mixed>) (обязательный)
- The JSON schema of the field, along with those keys.
Код Abstract_Field_Map::resolve_extra_keys() Abstract Field Map::resolve extra keys Yoast 28.9
protected function resolve_extra_keys( string $field_name, array $schema ): ?array {
return $schema;
}