Unverified Commit fd8c9222 authored by alexpott's avatar alexpott
Browse files

Issue #3114909 by hchonov, ravi.shankar, alexpott: Inconsistency between...

Issue #3114909 by hchonov, ravi.shankar, alexpott: Inconsistency between EntityTypeInterface ::getHandlerClass() and ::hasHandlerClass()
parent 61392175
...@@ -157,8 +157,9 @@ public function isPersistentlyCacheable(); ...@@ -157,8 +157,9 @@ public function isPersistentlyCacheable();
* *
* @param string $handler_type * @param string $handler_type
* The type of handler to check. * The type of handler to check.
* @param bool $nested * @param string|false $nested
* (optional) If this handler has a nested definition. Defaults to FALSE. * (optional) The nested handler definition key, or FALSE if the handler
* does not have a nested definition. Defaults to FALSE.
* *
* @return bool * @return bool
* TRUE if a handler of this type exists, FALSE otherwise. * TRUE if a handler of this type exists, FALSE otherwise.
...@@ -168,11 +169,14 @@ public function hasHandlerClass($handler_type, $nested = FALSE); ...@@ -168,11 +169,14 @@ public function hasHandlerClass($handler_type, $nested = FALSE);
/** /**
* @param string $handler_type * @param string $handler_type
* The handler type to get. * The handler type to get.
* @param string|false $nested
* (optional) The nested handler definition key, or FALSE if the handler
* does not have a nested definition. Defaults to FALSE.
* *
* @return array|string|null * @return array|string|null
* The handlers for a given type, or NULL if none exist. * The handlers for a given type, or NULL if none exist.
*/ */
public function getHandlerClass($handler_type); public function getHandlerClass($handler_type, $nested = FALSE);
/** /**
* Gets an array of handlers. * Gets an array of handlers.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment