You are here

public function Url::getDefaultIconUrl in URL Embed 8

Gets the default icon URL for the embed type.

Return value

string The URL to the default icon. Must have been passed through file_create_url() if the file is local.

Overrides EmbedTypeInterface::getDefaultIconUrl

See also

file_create_url()

File

src/Plugin/EmbedType/Url.php, line 25
Contains \Drupal\url_embed\Plugin\EmbedType\Url.

Class

Url
URL embed type.

Namespace

Drupal\url_embed\Plugin\EmbedType

Code

public function getDefaultIconUrl() {
  return file_create_url(drupal_get_path('module', 'url_embed') . '/js/plugins/drupalurl/urlembed.png');
}