PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.4
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.4
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / presentations / indexable-static-home-page-presentation.php

indexable-static-home-page-presentation.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.4, at src/presentations/indexable-static-home-page-presentation.php

33 lines 777 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yoast\WP\SEO\Presentations;
4
5 /**
6 * Class Indexable_Static_Home_Page_Presentation.
7 *
8 * Presentation object for indexables.
9 */
10 class Indexable_Static_Home_Page_Presentation extends Indexable_Post_Type_Presentation {
11
12 /**
13 * Wraps the get_paginated_url pagination helper method.
14 *
15 * @param string $url The un-paginated URL of the current archive.
16 * @param string $page The page number to add on to $url for the $link tag.
17 *
18 * @return string The paginated URL.
19 */
20 protected function get_paginated_url( $url, $page ) {
21 return $this->pagination->get_paginated_url( $url, $page );
22 }
23
24 /**
25 * Generates the Open Graph type.
26 *
27 * @return string The Open Graph type.
28 */
29 public function generate_open_graph_type() {
30 return 'website';
31 }
32 }
33