Drupal Resources and Reference
Drupal Resources and Reference
This article is a collection of important links and resources for drupal beginners and drupal experts
It will include reference resources, links, images, and even media.
Please comment with every important link.
Drupal API
Drupal Form Elements Reference
Drupal Globals
Name | Location | Description | Direct uses | Strings |
---|---|---|---|---|
$base_insecure_url | core/ |
The insecure base URL of the Drupal installation. | ||
$base_path | core/ |
The base path of the Drupal installation. | 40 | 15 |
$base_root | core/ |
The root URL of the host, excluding the path. | ||
$base_secure_url | core/ |
The secure base URL of the Drupal installation. | ||
$base_url | core/ |
The base URL of the Drupal installation. | 27 | |
$conf | core/ |
Allows defining of site-specific service providers for the Drupal kernel. | 3 | |
$config | core/ |
Array of configuration overrides from the settings.php file. | 268 | |
$install_state | core/ |
Store settings and profile information during installation process. | 4 |
Example Topics
in order to view the example, activate the link and then go to <view source>.
Name | Description |
---|---|
Example: AJAX | These examples show basic AJAX concepts. |
Example: Batch API | Outlines how a module can use the Batch API. |
Example: Block | Demonstrates code creation of blocks. |
Example: Cache API | Demonstrates how a module can use the Cache API. |
Example: Config Entity | Implement a Config Entity. |
Example: Config Node Type | A basic example of defining a content type through configuration YAML files. |
Example: Content Entity | Implement a content entity. |
Example: Cron | Example using Cron API, including hook_cron() and @QueueWorker plugins |
Example: Database (DBTNG) | Database examples, including DBTNG. |
Example: Draggable Table Forms | |
Example: Email | Example of how to use Drupal's mail API. |
Example: Events | Demonstrates subscribing to, and dispatching, events. |
Example: Field Permissions | Example using permissions on a Field API field. |
Example: Field Types API | Examples using Field Types API. |
Example: Forms API | Examples using Forms API. |
Example: Hooks | Demonstrates implementing, defining, and invoking hooks. |
Example: JavaScript | Examples using Drupal 8's built-in JavaScript. |
Example: Page | This example demonstrates how a module can display a page at a given URL. |
Example: Pager | Output nodes in the table with pagination. |
Example: PHPUnit | This example demonstrates PHPUnit for Drupal 8 unit testing. |
Example: Plugin Types | Example of how to define a plugin type. |
Example: Queue | Demonstrating the Queue API |
Example: Render API | The Render API consists of two parts: one, structured arrays that provide data, and hints about how that data should be rendered, and two, a rendering pipeline that can be used to render these arrays into various output formats. This example moduleā¦ |
Example: Session | Demonstrating how to manipulate sessions in Drupal 8. |
Example: Stream Wrappers | @group stream_wrapper_example |
Example: Tablesort | Example of a sortable table display. Three columns are sortable (Numbers, Letters and Mixture) We are using TableSort Extender extend('Drupal\Core\Database\Query\TableSortExtender') |
Example: Testing | This example demonstrates Drupal 8 testing frameworks. |
Example: Tour | The Tour module allows you you make instructional tours of user interfaces. |
Examples | Well-documented API examples for a broad range of Drupal core functionality. |
Find the Drupal Releases at : drupal.org/project/drupal/releases
More code examples at: https://git.drupalcode.org/project/examples