3 namespace Drupal\entity\BundlePlugin;
5 use Drupal\Core\Entity\EntityTypeInterface;
8 * Installs and uninstalls bundle plugins.
10 * Ensures that the fields provided by the bundle plugins are created/deleted.
12 interface BundlePluginInstallerInterface {
15 * Installs the bundle plugins provided by the specified modules.
17 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
19 * @param array $modules
22 public function installBundles(EntityTypeInterface $entity_type, array $modules);
25 * Uninstalls the bundle plugins provided by the specified modules.
27 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
29 * @param array $modules
32 public function uninstallBundles(EntityTypeInterface $entity_type, array $modules);