Module Development

Override an Inherited Method for Drupal 8, 9

Sprout Video

In this tutorial, I will show you how to override a method that you’ve inherited from another class. By having two classes we are starting to shape the different behaviors and properties of each, while still keeping most things in common and not duplicated.