You are here

public function Result::getTitle in Google Search Appliance 8

Gets value of title.

Return value

string Value of title

File

src/SearchResults/Result.php, line 156

Class

Result
Defines a value object representing a search result.

Namespace

Drupal\google_appliance\SearchResults

Code

public function getTitle() {
  return Markup::create(Xss::filter($this->title, [
    'b',
    'i',
  ]));
}