You are here

public function ProviderPluginBase::getName in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 src/ProviderPluginBase.php \Drupal\video_embed_field\ProviderPluginBase::getName()

Get the name of the video.

Return value

string A name to represent the video for the given plugin.

Overrides ProviderPluginInterface::getName

1 method overrides ProviderPluginBase::getName()
Vimeo::getName in src/Plugin/video_embed_field/Provider/Vimeo.php
Get the name of the video.

File

src/ProviderPluginBase.php, line 171

Class

ProviderPluginBase
A base for the provider plugins.

Namespace

Drupal\video_embed_field

Code

public function getName() {
  return $this
    ->t('@provider Video (@id)', [
    '@provider' => $this
      ->getPluginDefinition()['title'],
    '@id' => $this
      ->getVideoId(),
  ]);
}