You are here

interface BundlePluginInstallerInterface in Entity API 8

Installs and uninstalls bundle plugins.

Ensures that the fields provided by the bundle plugins are created/deleted.

Hierarchy

Expanded class hierarchy of BundlePluginInstallerInterface

All classes that implement BundlePluginInstallerInterface

File

src/BundlePlugin/BundlePluginInstallerInterface.php, line 12

Namespace

Drupal\entity\BundlePlugin
View source
interface BundlePluginInstallerInterface {

  /**
   * Installs the bundle plugins provided by the specified modules.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type.
   * @param array $modules
   *   The modules.
   */
  public function installBundles(EntityTypeInterface $entity_type, array $modules);

  /**
   * Uninstalls the bundle plugins provided by the specified modules.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type.
   * @param array $modules
   *   The modules.
   */
  public function uninstallBundles(EntityTypeInterface $entity_type, array $modules);

}

Members

Namesort descending Modifiers Type Description Overrides
BundlePluginInstallerInterface::installBundles public function Installs the bundle plugins provided by the specified modules. 1
BundlePluginInstallerInterface::uninstallBundles public function Uninstalls the bundle plugins provided by the specified modules. 1