Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Classes Extractor

31 sites No security coverage Drupal 10–11
View on drupal.org

This module provides a Drush command to extract backend classes from specified Drupal modules and save them to a file. It also offers an API endpoint to programmatically retrieve this class information and utilizes Drupal's plugin system for extensibility.

The Class Extractor Module is a powerful tool designed for Drupal developers. It provides a Drush command to extract all Backend classes from specified modules and generates a file containing the list of these classes. The module uses the Plugin System to enhance flexibility and maintainability, ensuring that class extraction logic can be easily extended without modifying the core code.

Additionally, the module exposes an API endpoint that allows external systems or other Drupal modules to retrieve the extracted class information.
Features

Drush Command:

Extracts Backend classes from one or more modules.
Saves the list of classes to a file for easy access or further processing.

API Endpoint:

Provides an endpoint to fetch the extracted class data programmatically.

Plugin System:

The module leverages Drupal's Plugin system for class extraction, allowing for easy addition of custom extraction logic without modifying the core code. You can create your own plugin to extend or modify the extraction process as needed.

Installation

Download and enable the module as you would for any other Drupal module.

Usage

Once installed and configured, the module provides a custom Drush command to extract all Backend classes from the specified modules.

Example Command:

drush cec

This command will extract the Backend classes and save them to a file. The file will contain a list of all classes found .

API Endpoint Usage: To access the list of extracted classes, you can make a request to the exposed API endpoint:

GET /api/extracted-classes

This will return a JSON response containing all the extracted classes.
Extending the Module

The Class Extractor module uses Drupal's Plugin System to allow you to create custom class extractors. If you need to implement custom extraction logic or handle specific class types, you can create a plugin to extend the functionality.

Example Plugin Creation:

Define a new plugin class that implements the ClassExtractorInterface.
Register the plugin with the plugin manager to make it available for use.

By using the plugin system, you can easily extend or modify the behavior of the Class Extractor Module to meet the specific needs of your project.

Sponsored and developed by:

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Feb 19, 2025
1.0.0 Stable 10 Dec 19, 2024