Drupal Core APIs
Creating a Batch Service for Long-running Processes in Drupal
Create a process (update a Node) that uses the batch API, and can be called either from a form, or from a drush command.
Tags
Creating a Custom (Programmatic) Block to Output HTML in Drupal
Studying the DrupalKernel Object in Drupal
Request object
DrupalKernel object.
createFromRequest accepts a Request object for use in intializeSettings
Settings object.
Database static method
Kernel handle() does initializeSettings(Request $request) and boot()
DrupalKernel very important service container property, which holds all Drupal services, and notably the http_kernel service, which gives us
Old fashioned ...
GLOBAL $config variable and require statement for settings.php
a $databases array passed to a Database static method.
a $settings array passed to Settings object.
Tags
Making Database Updates Using hook_update_n in Drupal
drush ev 'print \Drupal::keyValue("system.schema")->get("crystalbit_entity_updates") . "\n";'
drush ev "\Drupal::keyValue('system.schema')->set('crystalbit_entity_updates', (int) 11102)";
Tags
Pagination
- Previous page
- Page 2
Recent content
-
6 days 23 hours ago
-
1 week ago
-
1 week 2 days ago
-
1 week 3 days ago
-
1 week 5 days ago
-
2 weeks 5 days ago
-
2 weeks 5 days ago
-
2 weeks 5 days ago
-
2 weeks 5 days ago
-
3 weeks 4 days ago