service

Overriding a service in Drupal 8

Suppose we want to override the maintenance_mode service. This service is responsible for granting and denying permission to users while the website is in maintenance mode. 

Creating a custom service

A simple Drupal 8 example service converting a string to uppercase.
Subscribe to RSS - service