get_title() public method

Returns the title.
public get_title ( ) : string
return string
コード例 #1
0
 /**
  * Renders the admin banner spot.
  *
  * @param WPSEO_Admin_Banner_Spot $banner_spot The spot to render.
  *
  * @return string
  */
 public function render(WPSEO_Admin_Banner_Spot $banner_spot)
 {
     $output = '<div class="yoast-sidebar__spot"><strong>' . $banner_spot->get_title() . '</strong>';
     if ($banner_spot->get_description() !== '') {
         $output .= '<p>' . $banner_spot->get_description() . '</p>';
     }
     $output .= $banner_spot->render_banner();
     $output .= '</div>';
     return $output;
 }