Method | Description | |
---|---|---|
__construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer = null ) | WPSEO_Admin_Banner_Spot constructor. | |
add_banner ( WPSEO_Admin_Banner $banner ) | Adds an admin banner. | |
get_description ( ) : string | Returns the description. | |
get_title ( ) : string | Returns the title. | |
has_banners ( ) : boolean | Checks if there are any banners set. | |
render_banner ( ) : string | Renders the banner. | |
set_description ( string $description ) | Sets the description |
Method | Description | |
---|---|---|
get_random_banner ( ) : null | WPSEO_Admin_Banner | Returns a random banner. |
public __construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer = null ) | ||
$title | string | The title for the spot. |
$banner_renderer | WPSEO_Admin_Banner_Renderer | The renderer for the banner. |
public add_banner ( WPSEO_Admin_Banner $banner ) | ||
$banner | WPSEO_Admin_Banner | The banner to add. |
public get_description ( ) : string | ||
return | string |
protected get_random_banner ( ) : null | WPSEO_Admin_Banner | ||
return | null | WPSEO_Admin_Banner |
public has_banners ( ) : boolean | ||
return | boolean |
public set_description ( string $description ) | ||
$description | string | The description. |