summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Entity/EntityInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Entity/EntityInterface.php')
-rw-r--r--core/lib/Drupal/Core/Entity/EntityInterface.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Entity/EntityInterface.php b/core/lib/Drupal/Core/Entity/EntityInterface.php
index ab62144..4e483df 100644
--- a/core/lib/Drupal/Core/Entity/EntityInterface.php
+++ b/core/lib/Drupal/Core/Entity/EntityInterface.php
@@ -172,6 +172,28 @@ interface EntityInterface extends AccessibleInterface {
public function uriRelationships();
/**
+ * Loads an entity.
+ *
+ * @param mixed $id
+ * The id of the entity to load.
+ *
+ * @return static
+ * The entity object or NULL if there is no entity with the given ID.
+ */
+ public static function load($id);
+
+ /**
+ * Loads one or more entities.
+ *
+ * @param array $ids
+ * An array of entity IDs, or NULL to load all entities.
+ *
+ * @return static[]
+ * An array of entity objects indexed by their IDs.
+ */
+ public static function loadMultiple(array $ids = NULL);
+
+ /**
* Saves an entity permanently.
*
* When saving existing entities, the entity is assumed to be complete,