3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Fix operator so that field definitions for all bundles are included.

This commit is contained in:
paul121 2020-12-23 18:55:07 -08:00 committed by Michael Stenta
parent da3b031f73
commit 58f3d1a713

View file

@ -17,7 +17,7 @@ class FarmEntityBundlePluginHandler extends BundlePluginHandler {
// Allow modules to add definitions.
foreach (array_keys($this->pluginManager->getDefinitions()) as $plugin_id) {
$definitions = \Drupal::moduleHandler()->invokeAll('farm_entity_bundle_field_info', [$this->entityType, $plugin_id]);
$definitions += \Drupal::moduleHandler()->invokeAll('farm_entity_bundle_field_info', [$this->entityType, $plugin_id]);
}
// Ensure the presence of required keys which aren't set by the plugin.