Yoast\WP\SEO\Builders
Indexable_System_Page_Builder::build() public Yoast 1.0
Formats the data.
{} Это метод класса: Indexable_System_Page_Builder{}
Хуков нет.
Возвращает
Indexable. The extended indexable.
Использование
$Indexable_System_Page_Builder = new Indexable_System_Page_Builder(); $Indexable_System_Page_Builder->build( $object_sub_type, $indexable );
- $object_sub_type(строка) (обязательный)
- The object sub type of the system page.
- $indexable(Indexable) (обязательный)
- The indexable to format.
Код Indexable_System_Page_Builder::build() Indexable System Page Builder::build Yoast 15.6.2
public function build( $object_sub_type, Indexable $indexable ) {
$indexable->object_type = 'system-page';
$indexable->object_sub_type = $object_sub_type;
$indexable->title = $this->options->get( static::OPTION_MAPPING[ $object_sub_type ]['title'] );
$indexable->is_robots_noindex = true;
$indexable->blog_id = \get_current_blog_id();
if ( \array_key_exists( 'breadcrumb_title', static::OPTION_MAPPING[ $object_sub_type ] ) ) {
$indexable->breadcrumb_title = $this->options->get( static::OPTION_MAPPING[ $object_sub_type ]['breadcrumb_title'] );
}
return $indexable;
}