<?php

declare(strict_types=1);

namespace Drupal\{{ machine_name }};

use Drupal\Core\Plugin\PluginBase;

/**
 * Default class used for {{ plugin_type|pluralize }} plugins.
 */
final class {{ class_prefix }}Default extends PluginBase implements {{ class_prefix }}Interface {

  /**
   * {@inheritdoc}
   */
  public function label(): string {
    // The title from YAML file discovery may be a TranslatableMarkup object.
    return (string) $this->pluginDefinition['label'];
  }

}
