Skip to content
Snippets Groups Projects
Commit 097b83f9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2417339 by amateescu, shashikant_chauhan: Fix @return documentation for...

Issue #2417339 by amateescu, shashikant_chauhan: Fix @return documentation for EntityManagerInterface::loadEntityByConfigTarget()
parent 23a2db2d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -182,7 +182,7 @@ function entity_load_multiple($entity_type, array $ids = NULL, $reset = FALSE) {
*
* @return array
* An array of entity objects indexed by their IDs. Returns an empty array if
* no matching entities found.
* no matching entities are found.
*/
function entity_load_multiple_by_properties($entity_type, array $values) {
return \Drupal::entityManager()
......
......@@ -84,7 +84,7 @@ public function loadOverrideFree($id);
*
* @return \Drupal\Core\Entity\EntityInterface[]
* An array of entity objects indexed by their IDs. Returns an empty array
* if no matching entities found.
* if no matching entities are found.
*/
public function loadMultipleOverrideFree(array $ids = NULL);
......
......@@ -437,7 +437,7 @@ public function getCacheTags() {
/**
* {@inheritdoc}
*
* @return static
* @return static|null
* The entity object or NULL if there is no entity with the given ID.
*/
public static function load($id) {
......@@ -449,7 +449,8 @@ public static function load($id) {
* {@inheritdoc}
*
* @return static[]
* An array of entity objects indexed by their IDs.
* An array of entity objects indexed by their IDs. Returns an empty array
* if no matching entities are found.
*/
public static function loadMultiple(array $ids = NULL) {
$entity_manager = \Drupal::entityManager();
......
......@@ -461,8 +461,8 @@ public function getFormModeOptions($entity_type_id, $include_disabled = FALSE);
* @param string $uuid
* The UUID of the entity to load.
*
* @return \Drupal\Core\Entity\EntityInterface|FALSE
* The entity object, or FALSE if there is no entity with the given UUID.
* @return \Drupal\Core\Entity\EntityInterface|null
* The entity object, or NULL if there is no entity with the given UUID.
*
* @throws \Drupal\Core\Entity\EntityStorageException
* Thrown in case the requested entity type does not support UUIDs.
......@@ -478,8 +478,9 @@ public function loadEntityByUuid($entity_type_id, $uuid);
* The configuration target to load, as returned from
* \Drupal\Core\Entity\EntityInterface::getConfigTarget().
*
* @return \Drupal\Core\Entity\EntityInterface|FALSE
* The entity object, or FALSE if there is no entity with the given UUID.
* @return \Drupal\Core\Entity\EntityInterface|null
* The entity object, or NULL if there is no entity with the given config
* target identifier.
*
* @throws \Drupal\Core\Entity\EntityStorageException
* Thrown if the target identifier is a UUID but the entity type does not
......
......@@ -47,7 +47,7 @@ public function resetCache(array $ids = NULL);
*
* @return \Drupal\Core\Entity\EntityInterface[]
* An array of entity objects indexed by their IDs. Returns an empty array
* if no matching entities found.
* if no matching entities are found.
*/
public function loadMultiple(array $ids = NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment