| 1 |
<?php |
| 2 |
/** |
| 3 |
* Paginated Front Page Metadata Builder class |
| 4 |
* |
| 5 |
* @package Parsely |
| 6 |
* @since 3.4.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
declare(strict_types=1); |
| 10 |
|
| 11 |
namespace Parsely\Metadata; |
| 12 |
|
| 13 |
/** |
| 14 |
* Implements abstract Metadata Builder class to generate the metadata array |
| 15 |
* for a paginated front page. |
| 16 |
* |
| 17 |
* @since 3.4.0 |
| 18 |
*/ |
| 19 |
class Paginated_Front_Page_Builder extends Front_Page_Builder { |
| 20 |
/** |
| 21 |
* Populates the `url` field in the metadata object by getting the current page's URL. |
| 22 |
* |
| 23 |
* @since 3.4.0 |
| 24 |
*/ |
| 25 |
protected function build_url(): void { |
| 26 |
$this->metadata['url'] = $this->get_current_url(); |
| 27 |
} |
| 28 |
} |
| 29 |
|