# wordpress-seo/27.8/src/models/indexable-extension.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.8/code/src/models/indexable-extension.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.8/raw/src/models/indexable-extension.php
- Modified: 2026-02-17T12:17:50+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/27.8/code/src/models/indexable-extension.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Models;

use Yoast\WP\Lib\Model;

/**
 * Abstract class for indexable extensions.
 */
abstract class Indexable_Extension extends Model {

	/**
	 * Holds the Indexable instance.
	 *
	 * @var Indexable|null
	 */
	protected $indexable = null;

	/**
	 * Returns the indexable this extension belongs to.
	 *
	 * @return Indexable The indexable.
	 */
	public function indexable() {
		$this->indexable ??= $this->belongs_to( 'Indexable', 'indexable_id', 'id' )->find_one();

		return $this->indexable;
	}
}

```
