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