You are here

public function ImportProcessorPluginBase::getDescription in Entity Share 8.3

Returns the plugin's description.

Return value

string A string describing the plugin. Might contain HTML and should be already sanitized for output.

Overrides ImportProcessorInterface::getDescription

File

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

Class

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

Namespace

Drupal\entity_share_client\ImportProcessor

Code

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