Skip to content
Snippets Groups Projects
Commit df56f3fe authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1705702 by dawehner, damiankloip: Added Provide a way to allow modules...

Issue #1705702 by dawehner, damiankloip: Added Provide a way to allow modules alter plugin definitions.
parent fc303a43
Branches
Tags
Loading
......@@ -51,7 +51,6 @@ public function getDefinitions() {
$definitions[$plugin_id] = $definition;
}
}
drupal_alter($this->hook, $definitions);
return $definitions;
}
}
......@@ -4,3 +4,13 @@
* @file
* Helper module for the plugin tests.
*/
/**
* Implements hook_plugin_test_alter().
*/
function plugin_test_plugin_test_alter(&$definitions) {
foreach ($definitions as &$definition) {
$definition['altered'] = TRUE;
}
$definitions['user_login']['altered_single'] = TRUE;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment