diff --git a/core/modules/block/block.install b/core/modules/block/block.install index 1a0ac23..bd12f0f 100644 --- a/core/modules/block/block.install +++ b/core/modules/block/block.install @@ -102,11 +102,7 @@ function block_update_8002() { } // Provides a list of plugin labels, keyed by plugin ID. - $condition_plugin_id_label_map = array_map(function($definition) { - // The label might be a translation wrapper. - return (string) $definition['label']; - }, \Drupal::service('plugin.manager.condition')->getDefinitions()); - + $condition_plugin_id_label_map = array_column(\Drupal::service('plugin.manager.condition')->getDefinitions(), 'label', 'id'); // Override with the UI labels we are aware of. Sadly they are not machine // accessible, see