Search for getBundle

  1. Search 7.x for getBundle
  2. Search 8.9.x for getBundle
  3. Search 10.3.x for getBundle
  4. Search 11.x for getBundle
  5. Other projects
Title Object type File name Summary
BaseFieldDefinition::getTargetBundle function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Gets the bundle the field is attached to.
BaseFieldDefinition::setTargetBundle function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets the bundle this field is defined for.
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.
ContentEntityForm::getBundleEntity function core/lib/Drupal/Core/Entity/ContentEntityForm.php Returns the bundle entity of the entity, or NULL if there is none.
ContentEntityStorageBase::getBundleFromClass function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Retrieves the bundle name for a provided class name.
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 @covers ::getTargetBundle
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 @covers ::getBundlesForEntityType
@covers ::addEntityTypeAndBundle
@covers ::removeEntityTypeAndBundle
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.
Entity::getBundle function core/modules/migrate/src/Plugin/migrate/destination/Entity.php Gets the bundle for the row taking into account the default.
EntityBundleAccessCheckTest::getBundleAndAccessResult function core/tests/Drupal/Tests/Core/Entity/EntityBundleAccessCheckTest.php Data provider.
EntityDataDefinition::getBundles function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php Gets the array of possible entity bundles.
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 Gets the bundle to be displayed.
EntityDisplayBase::setTargetBundle function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Sets the bundle to be displayed.
EntityDisplayBaseTest::testGetTargetBundle function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php @covers ::getTargetBundle
EntityDisplayBaseTest::testSetTargetBundle function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php @covers ::setTargetBundle
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.
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 Gets the config dependency info for this entity, if any exists.
EntityType::getBundleEntityType function core/lib/Drupal/Core/Entity/EntityType.php Gets the name of the entity type which provides bundles.
EntityType::getBundleLabel function core/lib/Drupal/Core/Entity/EntityType.php Gets the label for the bundle.
EntityType::getBundleOf function core/lib/Drupal/Core/Entity/EntityType.php Gets the entity type for which this entity provides bundles.
EntityTypeBundleInfo::getBundleInfo function core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php Gets the bundle info of an entity type.
EntityTypeBundleInfoInterface::getBundleInfo function core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php Gets the bundle info of an entity type.
EntityTypeBundleInfoTest::providerTestGetBundleInfo function core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php Provides test data for testGetBundleInfo().
EntityTypeBundleInfoTest::testGetBundleInfo function core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php Tests the getBundleInfo() method.
EntityTypeInterface::getBundleConfigDependency function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets the config dependency info for this entity, if any exists.
EntityTypeInterface::getBundleEntityType function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets the name of the entity type which provides bundles.
EntityTypeInterface::getBundleLabel function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets the label for the bundle.
EntityTypeInterface::getBundleOf function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets the entity type for which this entity provides bundles.
EntityTypeTest::providerTestGetBundleLabel function core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php Provides test data for ::testGetBundleLabel().
EntityTypeTest::testGetBundleLabel function core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php Tests the ::getBundleLabel() method.
FieldConfigBase::getTargetBundle function core/lib/Drupal/Core/Field/FieldConfigBase.php Gets the bundle the field is attached to.
FieldConfigListBuilder::$targetBundle property core/modules/field_ui/src/FieldConfigListBuilder.php The name of the bundle the listed fields are attached to.
FieldDefinition::getTargetBundle function core/lib/Drupal/Core/Field/FieldDefinition.php Gets the bundle the field is attached to.
FieldDefinition::setTargetBundle function core/lib/Drupal/Core/Field/FieldDefinition.php Set the target bundle.

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