I have a custom content type 'project' with a title 'project_no'. I am creating a custom field 'project_reference' to be used in other content types. It has few fields; one of them is an entity reference to 'project'. I have this in my FieldType . php file:
$properties['project_no'] = DataDefinition::create('entity_reference') ->setLabel(t('Project No.')) ->setSetting('target_type','project') ->setSetting('handler','default');
how to display the widget as a drop list and to have it use auto complete to search/filter in contents of 'project'? I want to be able to enter a character and it will filter the projects that contain that character.