50ef3b9b49b5df5232ecdb25e597f4b096eed304
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / module / plugin-manager / src / Plugin / Model / Example.php.twig
1 <?php
2
3 namespace Drupal\{{ machine_name }}\Plugin\{{ class_prefix }};
4
5 use Drupal\{{ machine_name }}\{{ class_prefix }}PluginBase;
6
7 /**
8  * Example plugin implementation of the {{ machine_name }}.
9  *
10  * @{{ class_prefix }}(
11  *   id = "example",
12  *   label = @Translation("Example"),
13  *   description = @Translation("Example description.")
14  * )
15  */
16 class Example extends {{ class_prefix }}PluginBase {
17
18   /**
19    * {@inheritdoc}
20    */
21   public function method1() {
22     return __CLASS__ . ' implementation of ' . __FUNCTION__;
23   }
24
25 }