You are here

protected function JsonFeedSerializer::getFavicon in JSON Feed 8

Get the favicon URL.

Return value

string String contraining the URL of the site's favicon.

1 call to JsonFeedSerializer::getFavicon()
JsonFeedSerializer::render in src/Plugin/views/style/JsonFeedSerializer.php
Render the display in this style.

File

src/Plugin/views/style/JsonFeedSerializer.php, line 295

Class

JsonFeedSerializer
Default style plugin to render a JSON feed.

Namespace

Drupal\json_feed\Plugin\views\style

Code

protected function getFavicon() {
  $favicon = theme_get_setting('favicon.url');
  return $favicon ? Url::fromUserInput($favicon)
    ->setAbsolute()
    ->toString() : NULL;
}