Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Could anybody suggest a way that I might be able to get the "options" object in the PHP code of my custom behavior module?
The options I'm referring to are the same ones that are passed into the defined JavaScript file that ultimately executes the behavior.
I need to do some operations on the server-side as part of my custom behavior, so I need a way to retrieve these options.
Thanks in advance!
Strainy
Comments
Comment #1
m.stentaBehavior plugins no longer exist, and a lot of the plugin architecture has been refactored - so what you're trying to achieve is now a lot easier to do (using the options in PHP). Check out some of the other plugins in the new codebase - they provide a great example.