9a08bc5d2b6a33ce2fa46d4fa5a5f9d6aa6670c5
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / plugin-manager / annotation / src / ExamplePluginBase.php.twig
1 <?php
2
3 namespace Drupal\{{ machine_name }};
4
5 use Drupal\Component\Plugin\PluginBase;
6
7 /**
8  * Base class for {{ plugin_type }} plugins.
9  */
10 abstract class {{ class_prefix }}PluginBase extends PluginBase implements {{ class_prefix }}Interface {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function label() {
16     // Cast the label to a string since it is a TranslatableMarkup object.
17     return (string) $this->pluginDefinition['label'];
18   }
19
20 }