\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!