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.
\Drupal\Core\Plugin\ContextAwarePluginBase
extends \Drupal\Component\Plugin\ContextAwarePluginBase
, so it does not inherit any of \Drupal\Core\Plugin\PluginBase
wrapping code.
Comment | File | Size | Author |
---|---|---|---|
#8 | drupal_2144701_8.patch | 2.52 KB | Xano |
#8 | interdiff.txt | 844 bytes | Xano |
#3 | drupal_2144701_3.patch | 2.26 KB | Xano |
#1 | drupal_2144701_1.patch | 1.59 KB | Xano |
Comments
Comment #1
XanoComment #3
XanoComment #4
XanoThis also allows ConditionPluginBase and child classes to be tested through PHPUnit.
Comment #5
dawehnerI am glad that things like this will be way better in the future.
Comment #6
dawehnerAny reason to not use \Drupal::translation?
Comment #7
XanoI just copied this verbatim from
\Drupal\Core\Plugin\PluginBase
.Comment #8
XanoComment #9
catchCommitted/pushed to 8.x, thanks!