You are here

function components_test_components_namespaces_alter in Components! 3.x

Implements hook_components_namespaces_alter().

File

tests/modules/components_test/components_test.module, line 21
Test module.

Code

function components_test_components_namespaces_alter(array &$namespaces, string $theme) {
  if ($theme === 'components_test_theme') {
    $namespaces['components'][] = drupal_get_path('module', 'components_test') . '/components-alt';
  }
}