Current path: home/webdevt/www/wdp/wp-content/plugins/wordpress-seo-premium/src/conditionals/
?? Go up: /home/webdevt/www/wdp/wp-content/plugins/wordpress-seo-premium/src
<?php
namespace Yoast\WP\SEO\Premium\Conditionals;
use Yoast\WP\SEO\Conditionals\Conditional;
use Yoast\WP\SEO\Helpers\Options_Helper;
/**
* Cornerstone_Enabled_Conditional class.
*/
class Cornerstone_Enabled_Conditional implements Conditional {
/**
* The options helper.
*
* @var Options_Helper
*/
protected $options_helper;
/**
* Cornerstone_Enabled_Conditional constructor.
*
* @codeCoverageIgnore
*
* @param Options_Helper $options_helper The options helper.
*/
public function __construct( Options_Helper $options_helper ) {
$this->options_helper = $options_helper;
}
/**
* Returns `true` when the cornerstone content feature is enabled.
*
* @return bool `true` when the cornerstone content feature is enabled.
*/
public function is_met() {
return $this->options_helper->get( 'enable_cornerstone_content' );
}
}