Pedro Faria
Pedro Faria

Reputation: 78

Drupal 8 extensible module development approach

I am old Drupal developer and stopped at drupal 6 and now I am starting my studies of drupal 8 modules development.

I am porting a module to drupal 8 and this module that can be extended. The currently approach is using hooks and works well.

I want to know is hooks still the best approach or using the new OOP structure with services and dependency injection. (https://www.drupal.org/docs/8/api/services-and-dependency-injection)

Thanks in advance,

Pedro Faria

Upvotes: 1

Views: 63

Answers (1)

2pha
2pha

Reputation: 10155

The plugin API for Drupal 8 is probably what you want

Upvotes: 3

Related Questions