Commit df56f3fe authored by webchick's avatar webchick

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
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment