Commit e00e9cbb authored by catch's avatar catch

Issue #2907282 by BramDriesen, joachim:...

Issue #2907282 by BramDriesen, joachim: EntityTypeBundleInfoInterface::getBundleInfo() param should say 'ID'
parent a52185cf
...@@ -321,8 +321,8 @@ public function clearCachedBundles() { ...@@ -321,8 +321,8 @@ public function clearCachedBundles() {
* *
* @see https://www.drupal.org/node/2549139 * @see https://www.drupal.org/node/2549139
*/ */
public function getBundleInfo($entity_type) { public function getBundleInfo($entity_type_id) {
return $this->container->get('entity_type.bundle.info')->getBundleInfo($entity_type); return $this->container->get('entity_type.bundle.info')->getBundleInfo($entity_type_id);
} }
/** /**
......
...@@ -76,9 +76,9 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Lan ...@@ -76,9 +76,9 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Lan
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getBundleInfo($entity_type) { public function getBundleInfo($entity_type_id) {
$bundle_info = $this->getAllBundleInfo(); $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] : [];
} }
/** /**
......
...@@ -21,8 +21,8 @@ public function getAllBundleInfo(); ...@@ -21,8 +21,8 @@ public function getAllBundleInfo();
/** /**
* Gets the bundle info of an entity type. * Gets the bundle info of an entity type.
* *
* @param string $entity_type * @param string $entity_type_id
* The entity type. * The entity type ID.
* *
* @return array * @return array
* An array of bundle information where the outer array is keyed by the * An array of bundle information where the outer array is keyed by the
...@@ -30,7 +30,7 @@ public function getAllBundleInfo(); ...@@ -30,7 +30,7 @@ public function getAllBundleInfo();
* The inner arrays are associative arrays of bundle information, such as * The inner arrays are associative arrays of bundle information, such as
* the label for the bundle. * the label for the bundle.
*/ */
public function getBundleInfo($entity_type); public function getBundleInfo($entity_type_id);
/** /**
* Clears static and persistent bundles. * Clears static and persistent bundles.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment