Returns the list of bundles where the field has instances.
Return value
array
An array keyed by entity type names, whose values are arrays of bundle
names.
File
- drupal/core/modules/field/lib/Drupal/field/FieldInterface.php, line 70
- Contains \Drupal\field\FieldInterface.
Class
- FieldInterface
- Provides an interface defining a field entity.
Namespace
Drupal\field
Code
public function getBundles();