Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293292

ConfigEntityBundleBase - with API, how to get a list of configured fields

$
0
0

I have a entity (@ConfigEntityType) that extends ConfigEntityBundleBase

With api, how to get a list of configured fields in interface ?

I tried

$entity_field_definitions = \Drupal::service('entity_field.manager')->getFieldDefinitions('event_type', 'classic_form');

But I got this error

LogicException: Getting the base fields is not supported for entity type Event Type. in Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions() (line 225 of core/lib/Drupal/Core/Entity/EntityFieldManager.php).


Viewing all articles
Browse latest Browse all 293292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>