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