Very good video. Followed all the steps in detail, but I get "Call to undefined method Drupal\core_event_dispatcher\Event\Entity\EntityViewEvent::setBuild()" What am I missing?
That depends on your existing knowledge. Drupal 8 is much more following best practices in development, so if you are a symfony developer, you can easily follow D8. But if you're coming from D7, then the learning curve can be steep
I think it is in fact more complicated. But the complication is caused by more structure and better tools. Newer versions of PHP have object oriented programming built in which allows us to move away from hacks to make OOP work. It also looks like enterprise class frameworks like Symphony have leveraged OOP mechanisms and have built common enterprise framework patterns and best practices like dependency injection and better crafted tools for so much commonly needed infrastructure. The library appears to have been inspired by some of the great patterns and best practices that appeared long before in many Java enterprise frameworks and JSR's. Another thing that has happened is that many ideas from custom modules have been refactored into Drupal Core. Many of these ideas were refactored to use the new tooling or were improved or streamlined instead of being merely a simple port. Overall I think these changes show the Drupal concepts of a CMS as an extendable framework is still the best way forward. However, decoupled/headless ideas where front end Javascript frameworks like React and Angular will greatly influence the CMS framework ideas because much interaction and integration will need to happen on the browser side instead of being fully generated code on the server side. However, there is a large range of possibilities to mix and match server generated content/makup/scripting with client side coding and not every page needs to be using these more modern techniques.
This hook is also available in drupal 8. So you can follow drupal 7 style here. However, when hooks will be removed then drupal 8 would require more files and codes to do the same thing (regarding the content of the video). In other areas of work for developers, I feel that drupal 8 has complicated things comparing to drupal 8.
Really good stuff mate!
Very good video. Followed all the steps in detail, but I get "Call to undefined method Drupal\core_event_dispatcher\Event\Entity\EntityViewEvent::setBuild()" What am I missing?
Excellent Video
Excelente video!
Hi I tried to install your module in my local setup but it is not working ??
Is it just me or is Drupal 8 much more complicated than Drupal 6 & 7?
That depends on your existing knowledge. Drupal 8 is much more following best practices in development, so if you are a symfony developer, you can easily follow D8. But if you're coming from D7, then the learning curve can be steep
I think it is in fact more complicated. But the complication is caused by more structure and better tools. Newer versions of PHP have object oriented programming built in which allows us to move away from hacks to make OOP work. It also looks like enterprise class frameworks like Symphony have leveraged OOP mechanisms and have built common enterprise framework patterns and best practices like dependency injection and better crafted tools for so much commonly needed infrastructure. The library appears to have been inspired by some of the great patterns and best practices that appeared long before in many Java enterprise frameworks and JSR's. Another thing that has happened is that many ideas from custom modules have been refactored into Drupal Core. Many of these ideas were refactored to use the new tooling or were improved or streamlined instead of being merely a simple port. Overall I think these changes show the Drupal concepts of a CMS as an extendable framework is still the best way forward. However, decoupled/headless ideas where front end Javascript frameworks like React and Angular will greatly influence the CMS framework ideas because much interaction and integration will need to happen on the browser side instead of being fully generated code on the server side. However, there is a large range of possibilities to mix and match server generated content/makup/scripting with client side coding and not every page needs to be using these more modern techniques.
This hook is also available in drupal 8. So you can follow drupal 7 style here. However, when hooks will be removed then drupal 8 would require more files and codes to do the same thing (regarding the content of the video).
In other areas of work for developers, I feel that drupal 8 has complicated things comparing to drupal 8.
Excelente video!