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.
Problem/Motivation
Drupal\paragraphs\ParagraphsBehaviorBase
currently inherits Drupal\Component\Plugin\PluginBase
which does not provide helpers for translations and dependency serializaiton.
Proposed resolution
- Replace
Drupal\Component\Plugin\PluginBase
withDrupal\Core\Plugin\PluginBase
inDrupal\paragraphs\ParagraphsBehaviorBase
- Remove
StringTranslationTrait
andDependencySerializationTrait
usages if there are any
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | pluginBase-inherit-2929834-3.patch | 964 bytes | arunkumark |
|
Comments
Comment #2
arunkumarkComment #3
arunkumarkI have created a patch as per the proposed solution.
Comment #5
miro_dietikerFixed thx.