I have a custom entity type which has an entity reference field.
$fields['referenced_article'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Article'))
->setDescription(t('The associated article.'))
->setSetting('target_type', 'node')
->setSetting('handler', 'default')
->setDisplayOptions('form', array(
'type' => 'entity_reference_autocomplete',
'settings' => array(
'match_operator' => 'CONTAINS',
'size' => 60,
'placeholder' => '',
),
'weight' => -3,
))
->setDisplayConfigurable('form', TRUE);
This field returns now the nodes of all the node types when finding a match. How can I specify a node type? (I only want to show the nodes of type "article")
Do I need to use a specific setting for selecting content only one node type?