How to get the "field" value of config entity, with bundles, that is defined in a bundle while creating content
While creating content, HOOK_entity_presave() is called for the content entity and you can access only content fields. One of these content entity fields is a reference field to the bundle config entity, usually named bundle. Use this field to get the config entity via the magic property entity and get the config field value via the method you have defined in WebsiteTypeInterface:

$url = $entity-&gt;bundle-&gt;entity-&gt;getServiceUrl();


A more generic way when you don't know the bundle field name or the code should work for all entity types:

$bundle_field_name = $entity-&gt;getEntityType()-&gt;getKey('bundle');
if (!empty($bundle_field_name)) {
  $bundle_config = $entity-&gt;get($bundle_field_name)-&gt;entity;
  if ($bundle_config instanceof \Drupal\mymodule\Entity\WebsiteTypeInterface) {
    $url = $bundle_config-&gt;getServiceUrl();
  }
}