Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

PluginBase.php

Same filename in this branch
  1. 11.1.x core/lib/Drupal/Component/Plugin/PluginBase.php
  2. 11.1.x core/modules/views/src/Plugin/views/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.
RSS feed
Powered by Drupal