public function ProviderPluginBase::getName in Video Embed Field 8
Same name and namespace in other branches
- 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_fieldCode
public function getName() {
  return $this
    ->t('@provider Video (@id)', [
    '@provider' => $this
      ->getPluginDefinition()['title'],
    '@id' => $this
      ->getVideoId(),
  ]);
}