From d0d8e87b62dd22c674c52eea6ea9b136495e50dc Mon Sep 17 00:00:00 2001 From: catch Date: Thu, 30 Jan 2020 14:44:22 +0000 Subject: [PATCH] Issue #3108081 by tstoeckler, longwave: Return type for EntityTypeInterface::getFormClass() is incorrect --- core/lib/Drupal/Core/Entity/EntityTypeInterface.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index a4a3a416b2b..e148e7db4d1 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -228,8 +228,9 @@ interface EntityTypeInterface extends PluginDefinitionInterface { * @param string $operation * The name of the operation to use, e.g., 'default'. * - * @return string - * The class for this operation's form for this entity type. + * @return string|null + * The class for this operation's form for this entity type or NULL if the + * entity type does not have a form class for this operation. * * @see \Drupal\Core\Entity\EntityFormBuilderInterface */