3 namespace Drupal\entity\BundlePlugin;
5 use Drupal\Component\Plugin\PluginInspectionInterface;
8 * Interface for plugins which act as entity bundles.
10 interface BundlePluginInterface extends PluginInspectionInterface {
13 * Builds the field definitions for entities of this bundle.
16 * Field names must be unique across all bundles.
17 * It is recommended to prefix them with the bundle name (plugin ID).
19 * @return \Drupal\entity\BundleFieldDefinition[]
20 * An array of bundle field definitions, keyed by field name.
22 public function buildFieldDefinitions();