File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 16
16
* @param array $sandwich_plugin_info
17
17
* This is the array of plugin definitions.
18
18
*/
19
- function hook_sandwich_info_alter (array $ sandwich_plugin_info ) {
19
+ function hook_sandwich_info_alter (array & $ sandwich_plugin_info ) {
20
20
// Let's change the 'foobar' property for all sandwiches.
21
21
foreach ($ sandwich_plugin_info as $ plugin_id => $ plugin_definition ) {
22
22
$ sandwich_plugin_info [$ plugin_id ]['foobar ' ] = t ('We have altered this in the alter hook ' );
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class PluginTypeExampleTest extends ExamplesBrowserTestBase {
32
32
/**
33
33
* Test the plugin manager can be loaded, and the plugins are registered.
34
34
*
35
- * @todo: Check the alter hook fired and changed a property.
35
+ * @todo: https://www.drupal.org/project/examples/issues/2985705
36
36
*/
37
37
public function testPluginExample () {
38
38
/* @var $manager \Drupal\plugin_type_example\SandwichPluginManager */
You can’t perform that action at this time.
0 commit comments