From 56b8cbb3645bd7a754a526afbcb65c587fc09ef6 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Fri, 12 Dec 2014 16:52:17 -0800 Subject: [PATCH] Issue #2391295 by er.pushpinderrana, dawehner: Use @return $this instead of @return static in EntityInterface --- .../Drupal/Core/Entity/EntityTypeInterface.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index 26c913be533d..ec616445c811 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -46,7 +46,7 @@ public function get($property); * @param mixed $value * The value to set. * - * @return static + * @return $this */ public function set($property, $value); @@ -173,7 +173,7 @@ public function isPersistentlyCacheable(); * @param string $class * The name of the entity type class. * - * @return static + * @return $this */ public function setClass($class); @@ -265,7 +265,7 @@ public function getFormClass($operation); * The form class implementing * \Drupal\Core\Entity\EntityFormInterface. * - * @return static + * @return $this * * @see \Drupal\Core\Entity\EntityFormBuilderInterface */ @@ -293,7 +293,7 @@ public function getListBuilderClass(); * @param string $class * The list class to use for the operation. * - * @return static + * @return $this */ public function setListBuilderClass($class); @@ -368,7 +368,7 @@ public function isSubclassOf($class); * @param array|string $value * The value for a handler type. * - * @return static + * @return $this */ public function setHandlerClass($handler_type, $value); @@ -455,7 +455,7 @@ public function hasLinkTemplate($key); * @param string $route_name * The route name to use for the link. * - * @return static + * @return $this */ public function setLinkTemplate($key, $route_name); @@ -485,7 +485,7 @@ public function getLabelCallback(); * @param callable $callback * A callable that returns the label of the entity. * - * @return static + * @return $this */ public function setLabelCallback($callback); @@ -625,7 +625,7 @@ public function getUriCallback(); * @param callable $callback * A callback to use to provide a URI for the entity. * - * @return static + * @return $this */ public function setUriCallback($callback); -- GitLab