How send data to own editor Widget?

I’m trying to implement my own widget for Unreal Editor. I created a class that inherits from SLeafWidget. In Blueprint, I have a function that returns a Text. I want to create a blueprint function that takes a text and sends it to my own editor widget to print the text.