I am currently writing a custom module - block plugin for Drupal 8 -
How do i go about consuming/sending external API data and displaying them using blocks?
Is this the standard way - consume/send external API data via plugin directly or through a controller and output it to a twig template? If so, how do i send data from controller to a custom plugin block?
Any suggestion is welcome. Thank you.