public function EntityFieldManagerInterface::getFieldDefinitions in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldDefinitions()
- 9 core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldDefinitions()
Gets the field definitions for a specific bundle.
Parameters
string $entity_type_id: The entity type ID. Only entity types that implement \Drupal\Core\Entity\FieldableEntityInterface are supported.
string $bundle: The bundle.
Return value
\Drupal\Core\Field\FieldDefinitionInterface[] The array of field definitions for the bundle, keyed by field name.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityFieldManagerInterface.php, line 42
Class
- EntityFieldManagerInterface
- Provides an interface for an entity field manager.
Namespace
Drupal\Core\EntityCode
public function getFieldDefinitions($entity_type_id, $bundle);