PHP Class WPSEO_Admin_Banner_Sidebar_Renderer, wordpress-seo

Show file Open project: yoast/wordpress-seo Class Usage Examples

Protected Properties

Property Type Description
$spot_renderer WPSEO_Admin_Banner_Spot_Renderer

Public Methods

Method Description
__construct ( WPSEO_Admin_Banner_Spot_Renderer $spot_renderer ) Sets the spot renderer.
render ( WPSEO_Admin_Banner_Sidebar $banner_sidebar ) : string Renders the admin banner sidebar.

Protected Methods

Method Description
render_banner_spots ( array $banner_spots ) : string Renders the admin banner spots.

Method Details

__construct() public method

Sets the spot renderer.
public __construct ( WPSEO_Admin_Banner_Spot_Renderer $spot_renderer )
$spot_renderer WPSEO_Admin_Banner_Spot_Renderer The spot renderer that has to be used.

render() public method

Renders the admin banner sidebar.
public render ( WPSEO_Admin_Banner_Sidebar $banner_sidebar ) : string
$banner_sidebar WPSEO_Admin_Banner_Sidebar The sidebar to render.
return string

render_banner_spots() protected method

Renders the admin banner spots.
protected render_banner_spots ( array $banner_spots ) : string
$banner_spots array The banner spots to render.
return string

Property Details

$spot_renderer protected property

protected WPSEO_Admin_Banner_Spot_Renderer $spot_renderer
return WPSEO_Admin_Banner_Spot_Renderer