You are here

public function Twitter::getDefaultThumbnail in Media entity Twitter 8

Gets the default thumbnail image.

Return value

string Uri of the default thumbnail image.

Overrides MediaTypeBase::getDefaultThumbnail

2 calls to Twitter::getDefaultThumbnail()
Twitter::getLocalImageUri in src/Plugin/MediaEntity/Type/Twitter.php
Computes the destination URI for a tweet image.
Twitter::thumbnail in src/Plugin/MediaEntity/Type/Twitter.php
Gets thumbnail image.

File

src/Plugin/MediaEntity/Type/Twitter.php, line 383

Class

Twitter
Provides media type plugin for Twitter.

Namespace

Drupal\media_entity_twitter\Plugin\MediaEntity\Type

Code

public function getDefaultThumbnail() {
  return $this->config
    ->get('icon_base') . '/twitter.png';
}