Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityTypeBundleInfo.php
index 42d00a7fcb1d473e478e5e15ff86217891b0c494..aa917c845cb590f27e60167bdbabbe25e037547c 100644 (file)
@@ -76,9 +76,9 @@ class EntityTypeBundleInfo implements EntityTypeBundleInfoInterface {
   /**
    * {@inheritdoc}
    */
-  public function getBundleInfo($entity_type) {
+  public function getBundleInfo($entity_type_id) {
     $bundle_info = $this->getAllBundleInfo();
-    return isset($bundle_info[$entity_type]) ? $bundle_info[$entity_type] : [];
+    return isset($bundle_info[$entity_type_id]) ? $bundle_info[$entity_type_id] : [];
   }
 
   /**