section = $section; } /** * Build the canonical settings schema for the registered section. * * The page is scoped to the registered section, so it is titled with the * section label rather than the parent settings page label. * * @param string $section Unused. This adapter wraps a single registered section. * @return array * * @since 11.0.0 */ public function get_schema( string $section ): array { $schema = parent::get_schema( $section ); $label = html_entity_decode( $this->section->get_label(), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ); $schema['title'] = $label; $schema['shell']['title'] = $label; return $schema; } /** * Get script handles that must be loaded before the settings UI app mounts. * * @param string $section Unused. This adapter wraps a single registered section. * @return string[] */ public function get_script_handles( string $section ): array { return $this->section->get_script_handles( $this->settings_page ); } /** * Get the default save adapter for fields in this section. * * @param string $section Unused. This adapter wraps a single registered section. * @return string */ public function get_save_adapter( string $section ): string { return $this->section->get_save_adapter( $this->settings_page ); } }