Related Content
Drupal 10: Programatically Injecting Context Into Blocks
Context definitions in Drupal are really useful when you want to inject context into your plugins and I have been using them for a little while now. It has made building custom blocks to add content to pages much easier as I don't need to copy the same block of code to find an entity of a particular sort into the block plugin.
Drupal 10: Creating Custom Context Providers
I previously looked at injecting context providers into context aware plugins. This time I will explore more about creating our own context providers to plug into this system.
Drupal 10: Using Context Definitions To Create Context Aware Plugins
When developing plugins in Drupal a common task is to inject context so that certain tasks can be performed.
Drupal 9: Loading Configuration Entities Using Entity Query
Whilst working on a module I found that I needed to do something that was difficult to find information for. I think part of that is because the solution is simpler than I was thinking, but it did cause me to get lost in source code and internet issues for a while.
Drupal 9: Extending Drupal Base Classes Without Overriding Constructors
I have been using the Drupal dependency injection system for a while now, even giving talks and writing articles on the subject.
Drupal 9: Using PHP_CodeSniffer To Inspect Custom Code
Drupal has a number of coding standards and best practices that govern the way code should be written. This has many benefits but can allow for a consistent and maintainable code to be created.
Comments
but what if my website is running on Nginx webserver not Apache, who can I do the same functionality ?
Submitted by Anonymous on Wed, 01/04/2012 - 13:55
PermalinkI don't know to be honest. I don't have much experience with Nginx. Although from my research into it so far I think it follows the same .htaccess format as Apache. Although I could be (and probably am) wrong.
Submitted by philipnorton42 on Thu, 01/05/2012 - 08:54
PermalinkAdd new comment