You are here

public function ImportProcessorPluginBase::label in Entity Share 8.3

Returns the label for use on the administration pages.

Return value

string The administration label.

Overrides ImportProcessorInterface::label

File

modules/entity_share_client/src/ImportProcessor/ImportProcessorPluginBase.php, line 63

Class

ImportProcessorPluginBase
Defines a base class from which other processors may extend.

Namespace

Drupal\entity_share_client\ImportProcessor

Code

public function label() {
  $plugin_definition = $this
    ->getPluginDefinition();
  $label = $plugin_definition['label'];
  if ($label instanceof TranslatableMarkup) {
    $label = $label
      ->render();
  }
  return $label;
}