Unverified Commit fd8c9222 authored by Alex Pott's avatar Alex Pott
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
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -157,8 +157,9 @@ public function isPersistentlyCacheable();
   *
   * @param string $handler_type
   *   The type of handler to check.
   * @param bool $nested
   *   (optional) If this handler has a nested definition. Defaults to FALSE.
   * @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 bool
   *   TRUE if a handler of this type exists, FALSE otherwise.
@@ -168,11 +169,14 @@ public function hasHandlerClass($handler_type, $nested = FALSE);
  /**
   * @param string $handler_type
   *   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
   *   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.