What are the steps required to reproduce the bug?
I have an entity/content type that has 3 file upload fields.
These are for 3 video formats (ogv, webm, mp4) I am hoping to render out to a element in my twig files.
By default it renders a label and title + link to the file.
I went to `/admin/structure/types/manage/video_object/display` to change the display options for the fields.
Changed each of them to display the URL to file.
Hit save, and receive this error.
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Component\Plugin\Exception\ContextException</em>: Required contexts without a value: entity. in <em class="placeholder">Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping()</em> (line <em class="placeholder">96</em> of <em class="placeholder">core/lib/Drupal/Core/Plugin/Context/ContextHandler.php</em>). <pre class="backtrace">Drupal\layout_builder\SectionComponent->getPlugin(Array) (Line: 74)
Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent->__construct(Object, Array, 1) (Line: 99)
Drupal\layout_builder\SectionComponent->toRenderArray(Array, 1) (Line: 80)
Drupal\layout_builder\Section->toRenderArray(Array, 1) (Line: 195)
Drupal\layout_builder\Controller\LayoutBuilderController->buildAdministrativeSection(Object, 0) (Line: 96)
Drupal\layout_builder\Controller\LayoutBuilderController->layout(Object, )
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
What behavior were you expecting?
I was expecting to see a comfirmation message, and when viewing the node in the browser to see no label and to see just the URL to the file I need (so I can use that in my theming).
What happened instead?
As above, it gives me that error dump.
The LOG shows me this when I try to change the display layout modes again (I'm unable to change it back).
Type php
Date Tuesday, April 17, 2018 - 16:27
User admin
Location http://localhost/admin/structure/types/manage/video_object/display-layout/full
Referrer http://localhost/admin/structure/types/manage/video_object/display/full
Message Drupal\Component\Plugin\Exception\ContextException: Required contexts without a value: entity. in Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping() (line 96 of /app/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php).
The LOG shows me this when I try to view the node
Type php
Date Tuesday, April 17, 2018 - 16:44
User admin
Location http://localhost/node/4
Referrer http://localhost/node/4/edit
Message Drupal\Component\Plugin\Exception\ContextException: Required contexts without a value: entity. in Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping() (line 96 of /app/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php).