From 864dae1fa5afd62fbdaa7c64628d91bab4ed7074 Mon Sep 17 00:00:00 2001
From: Chris Caldwell <chrisolof@gmail.com>
Date: Mon, 18 Dec 2017 11:12:25 -0700
Subject: [PATCH] Issue #2931559 by chrisolof: $sandwich_plugin_info should be
 passed by reference

---
 plugin_type_example/plugin_type_example.api.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin_type_example/plugin_type_example.api.php b/plugin_type_example/plugin_type_example.api.php
index e3f6e3a..676d0be 100644
--- a/plugin_type_example/plugin_type_example.api.php
+++ b/plugin_type_example/plugin_type_example.api.php
@@ -16,7 +16,7 @@
  * @param array $sandwich_plugin_info
  *   This is the array of plugin definitions.
  */
-function hook_sandwich_info_alter(array $sandwich_plugin_info) {
+function hook_sandwich_info_alter(array &$sandwich_plugin_info) {
   // Let's change the 'foobar' property for all sandwiches.
   foreach ($sandwich_plugin_info as $plugin_id => $plugin_definition) {
     $sandwich_plugin_info[$plugin_id]['foobar'] = t('We have altered this in the alter hook');
-- 
2.7.4

