20steps/twentysteps_bricks_bridge

Drupal 7.x module bridging to Bricks by 20steps including Symfony 3

Maintainers

👁 helmuthva

Package info

github.com/20steps/twentysteps_bricks_bridge

Homepage

Type:drupal-module

pkg:composer/20steps/twentysteps_bricks_bridge

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 0

dev-master 2017-04-09 18:39 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0 674d8fd7bdd12af8ed31a09f601c702d77a96f38

This package is not auto-updated.

Last update: 2026-06-21 11:01:17 UTC


README

This Drupal 7.x module is a bridge to Bricks by 20steps including Symfony 3.

This module is used with the Bricks by 20steps Drupal 7.x edition.

See https://20steps.de for more information

Configuration

Edit the settings.php file and the following lines :

 $conf['bricks'] = array(
 'root' => __DIR__.'/../..', // the project root path
 'drush' => array(
 'env' => 'app',
 'debug' => true
 )
 );

In the case you have a customized Symfony structure, you can add a kernel_factory array key and create a custom closure that will return the kernel class name:

$conf['symfony2']['kernel_factory'] = function (array $conf) {
 $kernelName = 'PortalKernel';

 require_once sprintf('%s/apps/bootstrap.php.cache', $conf['symfony2']['root']);
 require_once sprintf('%s/apps/BaseKernel.php', $conf['symfony2']['root']);
 require_once sprintf('%s/apps/portal/%s.php', $conf['symfony2']['root'], $kernelName);

 return $kernelName;
};

Hooks

Some drupal hooks are sent to the Symfony Event Dispatcher.

Registration :

  • drupal.user_login
  • drupal.user_logout

User Entity event :

  • drupal.user_load
  • drupal.user_insert
  • drupal.user_update
  • drupal.user_presave