You are here

public function MediaWysiwygPluginBase::label in Media Migration 8

Returns the translated plugin label.

Return value

string The translated title.

Overrides MediaWysiwygInterface::label

File

src/MediaWysiwygPluginBase.php, line 52

Class

MediaWysiwygPluginBase
Base class for media_wysiwyg plugins.

Namespace

Drupal\media_migration

Code

public function label() {

  // Cast the label to a string since it is a TranslatableMarkup object.
  return (string) $this->pluginDefinition['label'];
}