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() {
*
* @see https://www.drupal.org/node/2549139
*/
public function getBundleInfo($entity_type) {
return $this->container->get('entity_type.bundle.info')->getBundleInfo($entity_type);
public function getBundleInfo($entity_type_id) {
return $this->container->get('entity_type.bundle.info')->getBundleInfo($entity_type_id);
}
/**
......
......@@ -76,9 +76,9 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Lan
/**
* {@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] : [];
}
/**
......
......@@ -21,8 +21,8 @@ public function getAllBundleInfo();
/**
* Gets the bundle info of an entity type.
*
* @param string $entity_type
* The entity type.
* @param string $entity_type_id
* The entity type ID.
*
* @return array
* An array of bundle information where the outer array is keyed by the
......@@ -30,7 +30,7 @@ public function getAllBundleInfo();
* The inner arrays are associative arrays of bundle information, such as
* the label for the bundle.
*/
public function getBundleInfo($entity_type);
public function getBundleInfo($entity_type_id);
/**
* 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