Articles
Object
Get Hook-ed on Object-Oriented Programming
When writing a hook implementation, for example of hook_cron, there's often a tendency to write purely procedural code, like this:Read article →Get the entity for a route
In Drupal 7, we had menu_get_object() to get the object in code for whichever node, term, or whatever entity makes up the current page. But in Drupal 8, that has been replaced, and entities can usually be operated on in a generic way. If you know the type of entity you want,…Read article →Let's talk
Got a project in mind?
You'll talk to a developer, not a salesperson.