Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / entity / tests / modules / entity_module_bundle_plugin_test / src / Plugin / BundlePluginTest / First.php
1 <?php
2
3 namespace Drupal\entity_module_bundle_plugin_test\Plugin\BundlePluginTest;
4
5 use Drupal\entity\BundleFieldDefinition;
6 use Drupal\Core\Plugin\PluginBase;
7
8 /**
9  * Provides the first bundle plugin.
10  *
11  * @BundlePluginTest(
12  *   id = "first",
13  *   label = @Translation("First"),
14  *   description = @Translation("Some description"),
15  * )
16  */
17 class First extends PluginBase implements BundlePluginTestInterface {
18
19   /**
20    * {@inheritdoc}
21    */
22   public function buildFieldDefinitions() {
23     $fields = [];
24     $fields['first_mail'] = BundleFieldDefinition::create('email')
25       ->setLabel(t('Email'))
26       ->setRequired(TRUE);
27
28     return $fields;
29   }
30
31 }