You are here

public function PersistedQueryPluginBase::getDescription in GraphQL 8.4

Returns the plugin's description.

Return value

string The plugin description.

Overrides PersistedQueryPluginInterface::getDescription

File

src/PersistedQuery/PersistedQueryPluginBase.php, line 45

Class

PersistedQueryPluginBase
Base class persisted query plugins that represent a GraphQL persisted query.

Namespace

Drupal\graphql\PersistedQuery

Code

public function getDescription() {
  $plugin_definition = $this
    ->getPluginDefinition();
  return isset($plugin_definition['description']) ? $plugin_definition['description'] : '';
}