Search for getBundle

  1. Search 7.x for getBundle
  2. Search 9.5.x for getBundle
  3. Search 8.9.x for getBundle
  4. Search 10.3.x for getBundle
  5. Search 11.x for getBundle
  6. Other projects
Title Object type File name Summary
BaseFieldDefinition::getTargetBundle function core/lib/Drupal/Core/Field/BaseFieldDefinition.php
BaseFieldDefinition::setTargetBundle function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets the bundle this field is defined for.
BaseFieldOverrideValidationTest::testTargetBundleMustExist function core/tests/Drupal/KernelTests/Core/Entity/BaseFieldOverrideValidationTest.php Tests that the target bundle of the field is checked.
BundleConstraint::getBundleOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php Gets the bundle option as array.
BundleEntityStorageInterface::getBundleFromClass function core/lib/Drupal/Core/Entity/BundleEntityStorageInterface.php Retrieves the bundle name for a provided class name.
BundleTranslationSettingsInterface::getBundleTranslationSettings function core/modules/content_translation/src/BundleTranslationSettingsInterface.php Returns translation settings for the specified bundle.
ContentEntityBase::getBundleEntity function core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityForm::getBundleEntity function core/lib/Drupal/Core/Entity/ContentEntityForm.php Returns the bundle entity of the entity, or NULL if there is none.
ContentEntityInterface::getBundleEntity function core/lib/Drupal/Core/Entity/ContentEntityInterface.php Gets the bundle entity of this entity.
ContentEntityStorageBase::getBundleFromClass function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
ContentEntityStorageBase::getBundleFromValues function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Retrieves the bundle from an array of values.
ContentLanguageSettings::getTargetBundle function core/modules/language/src/Entity/ContentLanguageSettings.php Gets the bundle this config applies to.
ContentLanguageSettings::setTargetBundle function core/modules/language/src/Entity/ContentLanguageSettings.php Sets the bundle this config applies to.
ContentLanguageSettingsInterface::getTargetBundle function core/modules/language/src/ContentLanguageSettingsInterface.php Gets the bundle this config applies to.
ContentLanguageSettingsInterface::setTargetBundle function core/modules/language/src/ContentLanguageSettingsInterface.php Sets the bundle this config applies to.
ContentLanguageSettingsUnitTest::testTargetBundle function core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php Tests target bundle.
ContentLanguageSettingsValidationTest::testTargetBundleMustExist function core/modules/language/tests/src/Kernel/ContentLanguageSettingsValidationTest.php Tests that the target bundle of the language content settings is checked.
ContentModeration::getBundlesForEntityType function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php Gets any bundles the workflow is applied to for the given entity type.
ContentModerationInterface::getBundlesForEntityType function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php Gets any bundles the workflow is applied to for the given entity type.
ContentModerationWorkflowTypeApiTest::testGetBundlesForEntityType function core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowTypeApiTest.php Tests get bundles for entity type.
ContentTranslationEntityBundleInfoTest::getBundledNode function core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php Gets a new bundled node for testing.
ContentTranslationManager::getBundleTranslationSettings function core/modules/content_translation/src/ContentTranslationManager.php Returns translation settings for the specified bundle.
DefaultSelection::validateTargetBundles function core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php Validates a target_bundles element.
DefaultSelection::validateTargetBundlesUpdate function core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php Validates a target_bundles_update element.
Entity::getBundle function core/modules/migrate/src/Plugin/migrate/destination/Entity.php Gets the bundle for the row taking into account the default.
EntityDataDefinition::getBundles function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php
EntityDataDefinitionInterface::getBundles function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php Gets the array of possible entity bundles.
EntityDisplayBase::getTargetBundle function core/lib/Drupal/Core/Entity/EntityDisplayBase.php
EntityDisplayBase::setTargetBundle function core/lib/Drupal/Core/Entity/EntityDisplayBase.php
EntityDisplayBaseTest::testGetTargetBundle function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php Tests get target bundle.
EntityDisplayBaseTest::testSetTargetBundle function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php Tests set target bundle.
EntityDisplayInterface::getTargetBundle function core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php Gets the bundle to be displayed.
EntityDisplayInterface::setTargetBundle function core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php Sets the bundle to be displayed.
EntityFormDisplayValidationTest::testTargetBundleMustExist function core/tests/Drupal/KernelTests/Core/Entity/EntityFormDisplayValidationTest.php Tests that the target bundle of the entity form display is checked.
EntityReferenceAdminTest::testMultipleTargetBundles function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php Tests field settings for an entity reference field.
EntityReferenceAutoCreateTest::testMultipleTargetBundles function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php Tests multiple target bundles.
EntityReferenceSettingsTest::testConfigTargetBundleDeletion function core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php Tests that config bundle deletions are mirrored in field config settings.
EntityReferenceSettingsTest::testCustomTargetBundleDeletion function core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php Tests that deletions of custom bundles are mirrored in field settings.
EntityType::getBundleConfigDependency function core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getBundleEntityType function core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getBundleLabel function core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getBundleListCacheTags function core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getBundleOf function core/lib/Drupal/Core/Entity/EntityType.php
EntityTypeBundleInfo::getBundleInfo function core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php
EntityTypeBundleInfo::getBundleLabels function core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php
EntityTypeBundleInfoInterface::getBundleInfo function core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php Gets the bundle info of an entity type.
EntityTypeBundleInfoInterface::getBundleLabels function core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php Gets an array of bundle labels for an entity type.
EntityTypeBundleInfoTest::providerTestGetBundleInfo function core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php Provides test data for testGetBundleInfo().
EntityTypeBundleInfoTest::providerTestGetBundleLabels function core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php Provides test data for testGetBundleLabels().
EntityTypeBundleInfoTest::testGetBundleInfo function core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php Tests the getBundleInfo() method.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.