Generate a block module using console project by answering a few questions. we must indicate in which module we will generate the code (in our example, our module entitled example, original eh?). Then we define respectively the block name, label and ID. We also have the ability to associate a form with the block that will allow us to associate specific fields. In our example, we create a text field that will contain the welcome message.