PluginBase.php

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

Namespace

Drupal\Core\Plugin

File

core/lib/Drupal/Core/Plugin/PluginBase.php

View source
<?php

namespace Drupal\Core\Plugin;

use Drupal\Component\Plugin\PluginBase as ComponentPluginBase;
use Drupal\Core\Messenger\MessengerTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;

/**
 * Base class for plugins supporting metadata inspection and translation.
 *
 * @ingroup plugin_api
 */
abstract class PluginBase extends ComponentPluginBase {
    use StringTranslationTrait;
    use DependencySerializationTrait;
    use MessengerTrait;

}

Classes

Title Deprecated Summary
PluginBase Base class for plugins supporting metadata inspection and translation.

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