July 2017
Intermediate to advanced
456 pages
11h 32m
English
Creating the block to display this new information is a another call to Drupal's generate:plugin:block, except this time, we're going to tell it to use a service and provide the mastering_drupal_8.weather_underground service.

Adding it to the Content region through the block administrative pages causes the default text to appear.

Then, we can wire up the block to the service in the build() function and output a list of any current hurricanes.
One thing you'll notice in the code of our new CurrentHurricanes block is the addition ...
Read now
Unlock full access