public function RelationTypeInterface::getBundles in Relation 8.2
Same name and namespace in other branches
- 8 src/RelationTypeInterface.php \Drupal\relation\RelationTypeInterface::getBundles()
Get valid entity/bundle pairs that can be associated with this type of Relation.
Parameters
NULL|string $direction: Bundle direction. Leave as NULL to get all.
Return value
array An array containing bundles as key/value pairs, keyed by entity type.
1 method overrides RelationTypeInterface::getBundles()
- RelationType::getBundles in src/
Entity/ RelationType.php - Get valid entity/bundle pairs that can be associated with this type of Relation.
File
- src/
RelationTypeInterface.php, line 26 - Contains \Drupal\relation\RelationTypeInterface.
Class
- RelationTypeInterface
- Provides an interface defining a Relation Type entity.
Namespace
Drupal\relationCode
public function getBundles($direction = NULL);