You are here

public function EmbedViews::getDefaultIconUrl in Views entity embed 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/EmbedType/EmbedViews.php \Drupal\views_entity_embed\Plugin\EmbedType\EmbedViews::getDefaultIconUrl()

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/EmbedViews.php, line 46

Class

EmbedViews
Viws embed type.

Namespace

Drupal\views_entity_embed\Plugin\EmbedType

Code

public function getDefaultIconUrl() {
  return file_create_url(drupal_get_path('module', 'views_entity_embed') . '/js/plugins/drupalviews/views_entity_embed.png');
}