diff --git a/core/modules/field/lib/Drupal/field/Entity/FieldInstance.php b/core/modules/field/lib/Drupal/field/Entity/FieldInstance.php index 8fe1d1c..e5b1ac6 100644 --- a/core/modules/field/lib/Drupal/field/Entity/FieldInstance.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldInstance.php @@ -617,6 +617,16 @@ public function isFieldConfigurable() { return TRUE; } + /** + * Returns the name of the bundle this field instance is attached to. + * + * @return string + * The name of the bundle this field instance is attached to. + */ + public function parentBundle() { + return $this->bundle; + } + /* * Implements the magic __sleep() method. *