{"id":15172639,"url":"https://github.com/sujanshresthanet/drupal-custom-blocks","last_synced_at":"2026-02-13T02:02:07.555Z","repository":{"id":232050718,"uuid":"783341996","full_name":"sujanshresthanet/Drupal-Custom-Blocks","owner":"sujanshresthanet","description":"Provides examples demonstrating the implementation of Drupal 9/10 custom blocks.","archived":false,"fork":false,"pushed_at":"2024-04-09T03:53:49.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T23:07:44.474Z","etag":null,"topics":["drupal","drupal-10","drupal-10-module","drupal-9","drupal-9-module","drupal-module"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sujanshresthanet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-07T16:17:22.000Z","updated_at":"2024-04-08T10:54:39.000Z","dependencies_parsed_at":"2024-04-07T17:32:08.572Z","dependency_job_id":"b1e194af-8a17-44a6-b790-ab0a6f39773d","html_url":"https://github.com/sujanshresthanet/Drupal-Custom-Blocks","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.3571428571428571,"last_synced_commit":"c947b0bb7646f11b2548c6228a56a8517b86048c"},"previous_names":["sujanshresthanet/drupal-custom-blocks"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sujanshresthanet/Drupal-Custom-Blocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujanshresthanet%2FDrupal-Custom-Blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujanshresthanet%2FDrupal-Custom-Blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujanshresthanet%2FDrupal-Custom-Blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujanshresthanet%2FDrupal-Custom-Blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujanshresthanet","download_url":"https://codeload.github.com/sujanshresthanet/Drupal-Custom-Blocks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujanshresthanet%2FDrupal-Custom-Blocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274200112,"owners_count":25239988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-10","drupal-10-module","drupal-9","drupal-9-module","drupal-module"],"created_at":"2024-09-27T10:01:42.846Z","updated_at":"2026-02-13T02:02:07.542Z","avatar_url":"https://github.com/sujanshresthanet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal 9/10 Custom Blocks\n\nThis module provides various examples of custom blocks in Drupal 9/10 and demonstrations related to creating custom blocks. Custom blocks are a powerful feature in Drupal that allows developers to create reusable pieces of content or functionality that can be placed within regions of a site's layout. With a variety of examples covering different scenarios and implementations, this module aims to empower developers to create powerful and flexible block-based solutions for their Drupal projects.\n\n## Features\n\n- **Basic Custom Block:** Learn how to create a simple custom block programmatically.\n- **Configuration Form Block:** Explore creating custom blocks with configuration forms to allow users to customize block content.\n- **Block Plugins:** Understand the concept of block plugins and how to create reusable block components.\n- **Dynamic Block Content:** Implement blocks with dynamic content based on various factors like user roles, permissions, or other contextual information.\n- **Custom Block Templates:** Customize the display of blocks by using custom block templates.\n- **Access Control:** Learn how to manage access control for custom blocks based on user roles or permissions.\n- **Block Visibility Settings:** Explore different ways to configure block visibility settings to control where and when blocks appear.\n- **Integration with other Modules:** See examples of integrating custom blocks with other Drupal modules, such as Views or Paragraphs.\n- **REST API Integration:** Understand how to expose custom block content through Drupal's REST API.\n\n\n\n## Installation\n\n1. Clone this repository into your Drupal `modules/custom` directory:\n\n\n2. Enable the \"Custom Blocks\" module either via the Drupal admin interface or using Drush:\n\n\n3. Navigate to `admin/modules` and ensure that the module is enabled.\n\n## Usage\n\n1. Navigate to the Drupal admin interface and go to `Structure \u003e Block layout`.\n2. Click on the \"Custom blocks\" tab to view and manage your custom blocks.\n3. Use the examples provided in this module to create, edit, and manage custom blocks as needed.\n\n## Contributing\n\nContributions are welcome! If you have any improvements, bug fixes, or new features and examples to add, feel free to open a pull request.\n\n\n## License\n\nThis project is licensed under the [GNU General Public License v2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujanshresthanet%2Fdrupal-custom-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujanshresthanet%2Fdrupal-custom-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujanshresthanet%2Fdrupal-custom-blocks/lists"}