Little helpers
Categories
Component ID
1990016
Component name
Little helpers
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
6397
Component created
Component changed
Component body
This is a module that provides an additional API for drupal core and various contributed modules that make development more convenient. Additional classes are added as needed.
Principles
- OOP Model classes that load default values on object creation. And provide a unified load, save, delete API.
- Use namespaces and class autoloading.
- Faciliate configuration of Drupal by writing code (install and update hooks).
Class list (incomplete)
- DBModel: A simple model base-class that allows to quickly build CRUD-objects for database tables with a unified interface.
- FieldField: A model class for the field_config table.
- FieldInstance: A model class for the field_config_instance table.
- LocaleLanguageApi: Wraps some core functions, lists all translation links, checks if current user has access to a path.
- LocaleLanguage: Model class for languages.
- SystemQueueItem: Model class for queue. Need to update old queue items in hook_update()? This is the class you need.
- WebformFormState: Wrapper around the form_state in webform_client_form - mainly used to reliably get values by their form-key.
- WebformSubmission: Wrapper around webform submissions - uses the same interface is FormState.
- WebformWebform: Get componenets by type and form_key; check whether a confirmation email (webform_confirm_email) is configured
Dependencies
- PSR0: for class autoloading.
- PHP 5.4+
Integrations
- Webform: Works with webform-7.x-3.x as well as with webform-7.x-4.x.
