PHP Class WPSEO_Admin_Banner_Renderer, wordpress-seo

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

Protected Properties

Property Type Description
$base_path string

Public Methods

Method Description
render ( WPSEO_Admin_Banner $banner ) : string Renders the admin banner.
set_base_path ( string $base_path ) Sets the base path, where the images are located.

Protected Methods

Method Description
get_image_path ( string $image ) : string Returns the full path for the image.

Method Details

get_image_path() protected method

Returns the full path for the image.
protected get_image_path ( string $image ) : string
$image string The image path.
return string

render() public method

Renders the admin banner.
public render ( WPSEO_Admin_Banner $banner ) : string
$banner WPSEO_Admin_Banner The banner to render.
return string

set_base_path() public method

Sets the base path, where the images are located.
public set_base_path ( string $base_path )
$base_path string The image location.

Property Details

$base_path protected property

protected string $base_path
return string