class PluginBase

Same name in this branch
  1. 11.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase
  2. 11.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase
Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase
  2. 9 core/lib/Drupal/Core/Plugin/PluginBase.php \Drupal\Core\Plugin\PluginBase
  3. 9 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase
  4. 8.9.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase
  5. 8.9.x core/lib/Drupal/Core/Plugin/PluginBase.php \Drupal\Core\Plugin\PluginBase
  6. 8.9.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase
  7. 10 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase
  8. 10 core/lib/Drupal/Core/Plugin/PluginBase.php \Drupal\Core\Plugin\PluginBase
  9. 10 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase

Base class for plugins supporting metadata inspection and translation.

Hierarchy

Expanded class hierarchy of PluginBase

Related topics

46 files declare their use of PluginBase
ActionBase.php in core/lib/Drupal/Core/Action/ActionBase.php
BlockBase.php in core/lib/Drupal/Core/Block/BlockBase.php
Breakpoint.php in core/modules/breakpoint/src/Breakpoint.php
Broken.php in core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
CKEditor5PluginDefault.php in core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php

... See full list

File

core/lib/Drupal/Core/Plugin/PluginBase.php, line 15

Namespace

Drupal\Core\Plugin
View source
abstract class PluginBase extends ComponentPluginBase {
    use StringTranslationTrait;
    use DependencySerializationTrait;
    use MessengerTrait;

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.