Timeline for How do I create a custom plugin?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 15, 2017 at 14:00 | comment | added | neha | I have also update render_callback function. I guess plugins are replaced by blocks in D8 and those blocks can be added in panels. I thinks i have understood the working. Let me correct if i am wrong. | |
Jan 15, 2017 at 13:38 | comment | added | Berdir | What exactly is "this scenario", that's still only the plugin definition. I can see it uses contexts, those are supported for Blocks too, see \Drupal\block_test\Plugin\Block\TestContextAwareBlock for an example that uses entity:user, yours would be entity:node. Otherwise that looks like standard block functionality to me, but I don't really know the 7.x API. If that's not it, then as written, create a new, specific question and make sure all relevant code is there | |
Jan 15, 2017 at 12:37 | comment | added | neha | I have updated the code. Can you elaborate how to do it now. I know how to create block plugin in D8, but not sure of this scenario. | |
Jan 15, 2017 at 12:02 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
fixed a typo
|
Jan 15, 2017 at 11:56 | history | answered | Berdir | CC BY-SA 3.0 |