# gutenberg/23.2.2/lib/experimental/block-editor-settings-mobile.php

Gutenberg, version 23.2.2. 31 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/23.2.2/code/lib/experimental/block-editor-settings-mobile.php
- Raw: https://pluginprobe.com/plugins/gutenberg/23.2.2/raw/lib/experimental/block-editor-settings-mobile.php
- Modified: 2024-09-11T23:54:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/23.2.2/code/lib/experimental/block-editor-settings-mobile.php#L10-L20`.

```php
<?php
/**
 * Adds settings to the mobile block editor.
 *
 * @package gutenberg
 */

/**
 * Adds settings to the mobile block editor.
 *
 * This is used by the settings REST endpoint and it should land in core
 * as soon as lib/class-wp-rest-block-editor-settings-controller.php does.
 *
 * @param array $settings Existing block editor settings.
 *
 * @return array New block editor settings.
 */
function gutenberg_get_block_editor_settings_mobile( $settings ) {
	if ( wp_theme_has_theme_json() ) {
		$settings['__experimentalStyles'] = gutenberg_get_global_styles();
	}

	// To tell mobile that the site uses quote v2 (inner blocks).
	// See https://github.com/WordPress/gutenberg/pull/25892.
	$settings['__experimentalEnableQuoteBlockV2'] = true;
	// To tell mobile that the site uses list v2 (inner blocks).
	$settings['__experimentalEnableListBlockV2'] = true;

	return $settings;
}

```
