Issue #2391295 by er.pushpinderrana, dawehner: Use @return $this instead of @return static in EntityInterface

8.0.x
Jennifer Hodgdon 2014-12-12 16:52:17 -08:00
parent c3aa5f4d3c
commit 56b8cbb364
1 changed files with 8 additions and 8 deletions

View File

@ -46,7 +46,7 @@ interface EntityTypeInterface {
* @param mixed $value * @param mixed $value
* The value to set. * The value to set.
* *
* @return static * @return $this
*/ */
public function set($property, $value); public function set($property, $value);
@ -173,7 +173,7 @@ interface EntityTypeInterface {
* @param string $class * @param string $class
* The name of the entity type class. * The name of the entity type class.
* *
* @return static * @return $this
*/ */
public function setClass($class); public function setClass($class);
@ -265,7 +265,7 @@ interface EntityTypeInterface {
* The form class implementing * The form class implementing
* \Drupal\Core\Entity\EntityFormInterface. * \Drupal\Core\Entity\EntityFormInterface.
* *
* @return static * @return $this
* *
* @see \Drupal\Core\Entity\EntityFormBuilderInterface * @see \Drupal\Core\Entity\EntityFormBuilderInterface
*/ */
@ -293,7 +293,7 @@ interface EntityTypeInterface {
* @param string $class * @param string $class
* The list class to use for the operation. * The list class to use for the operation.
* *
* @return static * @return $this
*/ */
public function setListBuilderClass($class); public function setListBuilderClass($class);
@ -368,7 +368,7 @@ interface EntityTypeInterface {
* @param array|string $value * @param array|string $value
* The value for a handler type. * The value for a handler type.
* *
* @return static * @return $this
*/ */
public function setHandlerClass($handler_type, $value); public function setHandlerClass($handler_type, $value);
@ -455,7 +455,7 @@ interface EntityTypeInterface {
* @param string $route_name * @param string $route_name
* The route name to use for the link. * The route name to use for the link.
* *
* @return static * @return $this
*/ */
public function setLinkTemplate($key, $route_name); public function setLinkTemplate($key, $route_name);
@ -485,7 +485,7 @@ interface EntityTypeInterface {
* @param callable $callback * @param callable $callback
* A callable that returns the label of the entity. * A callable that returns the label of the entity.
* *
* @return static * @return $this
*/ */
public function setLabelCallback($callback); public function setLabelCallback($callback);
@ -625,7 +625,7 @@ interface EntityTypeInterface {
* @param callable $callback * @param callable $callback
* A callback to use to provide a URI for the entity. * A callback to use to provide a URI for the entity.
* *
* @return static * @return $this
*/ */
public function setUriCallback($callback); public function setUriCallback($callback);