Blocks are chunks of content that can be placed in various regions and can be easily moved around the web page of your Drupal website. Learn how to create complete flexible and custom blocks programmatically in Drupal.

https://www.specbee.com/blogs/programmatically-creating-block-in-drupal

#drupal #drupaldevelopment #drupalblocks #webdevelopment #drupal8 #drupal9 #drupal10 #php #cms #opensource

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. For example, we might have a block plugin that needs to know about the content entity of the page it is currently being rendered on. We could potentially inject the routing system into the plugin and use this to find the currently loaded entity, but there is a drawback to this. There is a fair amount of custom logic involved in finding the content entity from the route and we would need to use this same code every time we want to solve this problem.

#! code
Drupal Tips: Avoid infinite loop in user login

Picture from Unsplash, user Tine Ivanič, @tine999 Last week I had to perform an intervention in a Drupal installation due to an unexpected bug. It was a problem that I hadn’t seen in Drupal for a long time… But the key really is that I was the one who created the issue so I think I’m ready to explain how it happened (my own code generated it) and how to fix it… I am very pleased to join you today to share with you my latest ridiculous mistake: the infinite login redirection in Drupal (and how to solve it)!…

Update Drupal 9.2.6
Update Drupal 9.1.13
Update Drupal 8.9.19

SA-CORE-2021-010
=> https://www.drupal.org/sa-core-2021-010

SA-CORE-2021-009
=> https://www.drupal.org/sa-core-2021-009

SA-CORE-2021-008
=> https://www.drupal.org/sa-core-2021-008

SA-CORE-2021-007
=> https://www.drupal.org/sa-core-2021-007

SA-CORE-2021-006
=> https://www.drupal.org/sa-core-2021-006

#drupal #drupal8 #drupal9 #security

Drupal core - Moderately critical - Access Bypass - SA-CORE-2021-010

Under some circumstances, the Drupal core JSON:API module does not properly restrict access to certain content, which may result in unintended access bypass. Sites that do not have the JSON:API module enabled are not affected. This advisory is not covered by Drupal Steward.

drupal 8.9.18

Maintenance and security release of the Drupal 8 series. This release fixes security vulnerabilities. Sites are urged to upgrade immediately after reading the notes below and the security announcement: Drupal core - Critical - Third-party library - SA-CORE-2021-005 No other fixes are included. Which release do I choose? Security coverage information Sites on 8.9.x should update immediately to this release, but update to Drupal 9 as soon as possible afterward because Drupal 8 is end-of-life in three months.

Mi sa che almeno per il momento lascerò Bartick come tema predefinito del sito aggiornato a #drupal8. Tanto poi devo aggiornarlo alla 9 💉
Upgrade from #drupal 7 to #drupal8: FAILED! 😡
De ton expérience, le passage #Drupal8 à #Drupal9 c'est
Finger in the nose
0%
Pain in the ass
0%
Je sais pas j'ai Poney
100%
Poll ended at .
PHP 7: Calculating memory consumption in PHP arrays ($1925326) · Snippets

GitLab.com

everything updated #drupal7 #drupal8 -> works :) #drupalrulez