# wordpress-seo/28.2/src/conditionals/text-formality-conditional.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.2. 20 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.2/code/src/conditionals/text-formality-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.2/raw/src/conditionals/text-formality-conditional.php
- Modified: 2022-10-05T13:11:08+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/wordpress-seo/28.2/code/src/conditionals/text-formality-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

/**
 * Checks if the YOAST_SEO_TEXT_FORMALITY constant is set.
 */
class Text_Formality_Conditional extends Feature_Flag_Conditional {

	/**
	 * Returns the name of the feature flag.
	 * 'YOAST_SEO_' is automatically prepended to it and it will be uppercased.
	 *
	 * @return string the name of the feature flag.
	 */
	public function get_feature_flag() {
		return 'TEXT_FORMALITY';
	}
}

```
