Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Thank you @maxilein! Right now there's no way to do this - I think the only short term solution would be to zoom out in your browser, or zoom out within ERD (with the zoom out button) and work there. This is a good feature request though!
@maxilein I just did a ton of work in the dev branch of this module to allow resizing the canvas - would you mind trying it out and letting me know what you think?
Hi,
thank you.
I just updated to the latest dev.
I cannot add entity types. There seems to be a link to rawgit.com which is blocked by my servers.
I'd rather have files locally..
R, Max
Nice catch @maxilein - I see from the API docs that \Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getPropertiesToExport can return an array or NULL, but I was assuming it would always return an array. Could you update to the latest dev and see if the notices go away? Thanks!
Based on my testing the UI doesn't 100% behave as expected, but the latest dev release does provide the requested functionality, without throwing new errors or warnings.
Comments
Comment #2
samuel.mortensonThank you @maxilein! Right now there's no way to do this - I think the only short term solution would be to zoom out in your browser, or zoom out within ERD (with the zoom out button) and work there. This is a good feature request though!
Comment #3
samuel.mortenson@maxilein I just did a ton of work in the dev branch of this module to allow resizing the canvas - would you mind trying it out and letting me know what you think?
Comment #4
maxilein commentedHi,
thank you.
I just updated to the latest dev.
I cannot add entity types. There seems to be a link to rawgit.com which is blocked by my servers.
I'd rather have files locally..
R, Max
Comment #5
maxilein commentedApart from the detail in #4 it seems to be working just fine...
Comment #6
maxilein commentedI just saw that i am getting lots of warnings:
Warning: Invalid argument supplied for foreach() in Drupal\erd\Controller\EntityRelationshipDiagramController->getMainDiagram() (line 151 of /var/www/html/modules/erd/src/Controller/EntityRelationshipDiagramController.php) #0 /../core/includes/bootstrap.inc(566): _drupal_error_handler_real(2, 'Invalid argumen...', '/../m...', 151, Array) #1 /../modules/erd/src/Controller/EntityRelationshipDiagramController.php(151): _drupal_error_handler(2, 'Invalid argumen...', '/../m...', 151, Array) #2 [internal function]: Drupal\erd\Controller\EntityRelationshipDiagramController->getMainDiagram() #3 /../core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #4 /../core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #5 /../core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #6 /../core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #7 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #8 /../vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #9 /../vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #10 /../core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /../core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /../core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /../core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /../core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /../core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /../vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /../core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /../index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main}.
Comment #7
samuel.mortensonNice catch @maxilein - I see from the API docs that
\Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getPropertiesToExportcan return an array or NULL, but I was assuming it would always return an array. Could you update to the latest dev and see if the notices go away? Thanks!Comment #8
mandclu commentedBased on my testing the UI doesn't 100% behave as expected, but the latest dev release does provide the requested functionality, without throwing new errors or warnings.