public EntityFieldManagerInterface::getFieldDefinitions($entity_type_id, $bundle)
Gets the field definitions for a specific bundle.
string $entity_type_id: The entity type ID. Only entity types that implement \Drupal\Core\Entity\FieldableEntityInterface are supported.
string $bundle: The bundle.
\Drupal\Core\Field\FieldDefinitionInterface[] The array of field definitions for the bundle, keyed by field name.
public function getFieldDefinitions($entity_type_id, $bundle);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityFieldManagerInterface.php/function/EntityFieldManagerInterface::getFieldDefinitions/8.1.x