# wordpress-seo/28.4/src/llms-txt/application/markdown-builders/link-lists-builder.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.4/code/src/llms-txt/application/markdown-builders/link-lists-builder.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.4/raw/src/llms-txt/application/markdown-builders/link-lists-builder.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/28.4/code/src/llms-txt/application/markdown-builders/link-lists-builder.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders;

use Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections\Link_List;
use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Content_Types_Collector;
use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Terms_Collector;

/**
 * The builder of the link list sections.
 */
class Link_Lists_Builder {

	/**
	 * The content types collector.
	 *
	 * @var Content_Types_Collector
	 */
	private $content_types_collector;

	/**
	 * The terms collector.
	 *
	 * @var Terms_Collector
	 */
	private $terms_collector;

	/**
	 * Constructs the class.
	 *
	 * @param Content_Types_Collector $content_types_collector The content types collector.
	 * @param Terms_Collector         $terms_collector         The terms collector.
	 */
	public function __construct(
		Content_Types_Collector $content_types_collector,
		Terms_Collector $terms_collector
	) {
		$this->content_types_collector = $content_types_collector;
		$this->terms_collector         = $terms_collector;
	}

	/**
	 * Builds the link list sections.
	 *
	 * @return Link_List[] The link list sections.
	 */
	public function build_link_lists(): array {
		return \array_merge(
			$this->content_types_collector->get_content_types_lists(),
			$this->terms_collector->get_terms_lists(),
		);
	}
}

```
