File "description-data-provider.php"
Full Path: /home/itfekxul/theolympicssports.com/wp-content/plugins/wordpress-seo/src/editors/framework/seo/terms/description-data-provider.php
File size: 1.18 KB
MIME-type: text/x-php
Charset: utf-8
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace Yoast\WP\SEO\Editors\Framework\Seo\Terms;
use Yoast\WP\SEO\Editors\Domain\Seo\Description;
use Yoast\WP\SEO\Editors\Domain\Seo\Seo_Plugin_Data_Interface;
use Yoast\WP\SEO\Editors\Framework\Seo\Description_Data_Provider_Interface;
/**
* Describes if the description SEO data.
*/
class Description_Data_Provider extends Abstract_Term_Seo_Data_Provider implements Description_Data_Provider_Interface {
/**
* Retrieves the description template.
*
* @return string The description template.
*/
public function get_description_template(): string {
return $this->get_template( 'metadesc' );
}
/**
* Determines the date to be displayed in the snippet preview.
*
* @return string
*/
public function get_description_date(): string {
return '';
}
/**
* Method to return the Description domain object with SEO data.
*
* @return Seo_Plugin_Data_Interface The specific seo data.
*/
public function get_data(): Seo_Plugin_Data_Interface {
return new Description( $this->get_description_date(), $this->get_description_template() );
}
}