Issue #3114909 by hchonov, ravi.shankar, alexpott: Inconsistency between EntityTypeInterface ::getHandlerClass() and ::hasHandlerClass()

merge-requests/2419/head
Alex Pott 2020-03-12 15:54:43 +00:00
parent 6139217555
commit fd8c922277
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 7 additions and 3 deletions

View File

@ -157,8 +157,9 @@ interface EntityTypeInterface extends PluginDefinitionInterface {
*
* @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 @@ interface EntityTypeInterface extends PluginDefinitionInterface {
/**
* @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.