|list<1|2|3>} */ protected function get_data_structure(): array { return array( 'type' => 'integer', 'enum' => 'yes' === get_option( 'pll_language_from_content_available' ) ? array( 0, 1, 2, 3 ) : array( 1, 2, 3 ), ); } /** * Returns the description used in the JSON schema. * * @since 3.7 * * @return string */ protected function get_description(): string { return __( 'Determine how the current language is defined.', 'polylang' ); } }