You are here

public function QuickNodeCloneEntitySettingsForm::getEntityBundles in Quick Node Clone 8

Returns the bundles for the entity.

Return value

string The bundle of the entity.

Overrides QuickNodeCloneEntitySettingsFormInterface::getEntityBundles

1 call to QuickNodeCloneEntitySettingsForm::getEntityBundles()
QuickNodeCloneEntitySettingsForm::buildForm in src/Form/QuickNodeCloneEntitySettingsForm.php
Form constructor.

File

src/Form/QuickNodeCloneEntitySettingsForm.php, line 211

Class

QuickNodeCloneEntitySettingsForm
Abstract class to configure how entities are cloned.

Namespace

Drupal\quick_node_clone\Form

Code

public function getEntityBundles() {
  static $bundles;
  if (!isset($bundles)) {
    $bundles = $this->entityTypeBundleInfo
      ->getBundleInfo($this
      ->getEntityTypeId());
  }
  return $bundles;
}