WPSEO_Config_Field_Company_Logo

Class WPSEO_Config_Field_Company_Logo.

Defined (1)

The class is defined in the following location(s).

/admin/config-ui/fields/class-field-company-logo.php  
  1. class WPSEO_Config_Field_Company_Logo extends WPSEO_Config_Field { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Company_Logo constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'publishingEntityCompanyLogo', 'MediaUpload' ); 
  8.  
  9. $this->set_property( 'label', __( 'Provide an image of the company logo', 'wordpress-seo' ) ); 
  10.  
  11. $this->set_requires( 'publishingEntityType', 'company' ); 
  12.  
  13. /** 
  14. * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. 
  15. */ 
  16. public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { 
  17. $adapter->add_yoast_lookup( $this->get_identifier(), 'wpseo', 'company_logo' );