Entity reference field pointing to a Configuration Entity I develop a custom statistics module to log all node views of a chosen bundles, file downloads and the keywords used to filter a view.

Then I build my Entity Log with a user reference (who does the action), a node reference and a file reference. I want to know if I can make a views reference to point the View (as a configuration entity) that the user searched for some keyword.

I don't know if this is crazy... Is it possible to reference a view from an entity?

I'm using drupal 8
This is no problem, in ui you can configure bundle fields referencing all entity types, content and configuration. And for base fields this is an example from the user entity for a reference field pointing at the configuration entity user_role:

$fields['roles'] = BaseFieldDefinition::create('entity_reference')
  -&gt;setLabel(t('Roles'))
  -&gt;setCardinality(BaseFieldDefinition::CARDINALITY_UNLIMITED)
  -&gt;setDescription(t('The roles the user has.'))
  -&gt;setSetting('target_type', 'user_role');