Page Manager provides a nice Context plugin that doesn't load the entity until it is needed. This would be good to bring into CTools, especially as the ContextManager being worked on in #2511568: Create "context stack" service where available contexts can be registered is hopefully moving the StaticContext event listener into ctools.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 2571699-14.patch | 448 bytes | andypost |
Comments
Comment #2
rlmumfordHere is a patch.
Comment #6
rlmumfordI have no idea how this would kill the Wizard tests.
Comment #7
rlmumfordAdding to panels sprint board.
Comment #10
dsnopekSome changes were made to this code in Page Manager for recent core changes, see #2576323: Fix static context for recent core changes
Comment #12
tim.plunkettTests would be great.
Comment #13
eclipsegc commentedDouble check against page_manager's implementation and add some test coverage. I'd love to see this in ctools.
Eclipse
Comment #14
andypostThere's identical implementation of the class and tests in both modules
\Drupal\Tests\ctools\Unit\ContextMapperTest::testGetContextValuesEntityContextOnly class description missing
Comment #15
rlmumfordThis was fixed in commit 3ebc76216d168d91862234bdde1c62b4389b7168
Comment #16
andypostMy patch still applies and fix documentation issue
Comment #18
joelpittetClosing this out, thanks @andypost