Issue #2907282 by BramDriesen, joachim: EntityTypeBundleInfoInterface::getBundleInfo() param should say 'ID'
parent
a52185cfd2
commit
e00e9cbb8c
|
@ -321,8 +321,8 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
|
||||||
*
|
*
|
||||||
* @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 @@ class EntityTypeBundleInfo implements EntityTypeBundleInfoInterface {
|
||||||
/**
|
/**
|
||||||
* {@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 @@ interface EntityTypeBundleInfoInterface {
|
||||||
/**
|
/**
|
||||||
* 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 @@ interface EntityTypeBundleInfoInterface {
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue