Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders
Title_Builder{}
The builder of the title section.
Хуков нет.
Использование
$Title_Builder = new Title_Builder(); // use class methods
Методы
- public __construct(
- public build_title()
Код Title_Builder{} Title Builder{} Yoast 28.3
class Title_Builder {
/**
* The title adapter.
*
* @var Title_Adapter
*/
protected $title_adapter;
/**
* The constructor.
*
* @param Title_Adapter $title_adapter The title adapter.
*/
public function __construct(
Title_Adapter $title_adapter
) {
$this->title_adapter = $title_adapter;
}
/**
* Builds the title section.
*
* @return Title The title section.
*/
public function build_title(): Title {
return $this->title_adapter->get_title();
}
}