You are here

Plugin4A.php in Service Container 7.2

File

modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_test/src/Plugin/Plugin4/Plugin4A/Plugin4A.php
View source
<?php

namespace Drupal\service_container_annotation_discovery_test\Plugin\Plugin4\Plugin4A;

use Drupal\Component\Annotation\PluginID;
use Drupal\Component\Plugin\PluginBase;
use Drupal\service_container\Messenger\MessengerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Class Plugin4A
 *
 * @Plugin(
 *   id = "Plugin4A",
 *   label = "Label Plugin4A",
 *   arguments = {
 *    "@messenger"
 *   }
 * )
 *
 * @package Drupal\service_container_annotation_discovery_test\Plugin\Plugin4\Plugin4A
 */
class Plugin4A extends PluginBase {

  /**
   * @var \Drupal\service_container\Messenger\MessengerInterface
   */
  protected $messenger;
  public function __construct($configuration, $plugin_id, $plugin_definition, MessengerInterface $messenger) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->messenger = $messenger;
  }
  public function getMessenger() {
    return $this->messenger;
  }

}

Classes

Namesort descending Description
Plugin4A Class Plugin4A