Drupal 8 API (for Drupal 7)
Categories
Component ID
1525372
Component name
Drupal 8 API (for Drupal 7)
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module provides a Drupal 8 compatibility layer for Drupal 7.
This is just an experiment for developers. This is an API module and doesn't provide any UI at all. Though it does work :-)
Installation:
- Requires Libraries API 7.x-2.x-dev.
- Check out full Drupal 8 on sites/all/libraries/drupal8. You can use git or download the latest version from Drupal 8.
Note that having all that Drupal 8 code there may not be safe so you better do some cleanup if this ever gets out of a development sandbox.
To use Drupal 8 classes:
libraries_load('drupal8);
(Yeah, that's it. Don't forget namespaces and 'use' statements though.
To include some other Drupal 8 API:
drupal8_include('graph.inc');
(Library must be previously initialized. Function names may clash with D7 functions.)
