3 namespace Drupal\entity_module_bundle_plugin_examples_test\Plugin\BundlePluginTest;
5 use Drupal\entity\BundleFieldDefinition;
6 use Drupal\Core\Plugin\PluginBase;
7 use Drupal\entity_module_bundle_plugin_test\Plugin\BundlePluginTest\BundlePluginTestInterface;
10 * Provides the second bundle plugin.
14 * label = @Translation("Second"),
17 class Second extends PluginBase implements BundlePluginTestInterface {
22 public function buildFieldDefinitions() {
24 $fields['second_mail'] = BundleFieldDefinition::create('email')
25 ->setLabel(t('Email'))