/**
  * Construct the UnapprovedComments object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param array $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\comment\CommentStorageInterface $comment_storage
  *   The comment storage service.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, CommentStorageInterface $comment_storage)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->commentStorage = $comment_storage;
 }
Ejemplo n.º 2
0
 /**
  * Constructs a new EditTab object.
  *
  * @param array $configuration
  *   Plugin configuration.
  * @param string $plugin_id
  *   Plugin ID.
  * @param mixed $plugin_definition
  *   Plugin definition.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  *   The translation service.
  * @param \Drupal\workbench_moderation\ModerationInformation $moderation_information
  *   The moderation information.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, ModerationInformation $moderation_information)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->stringTranslation = $string_translation;
     $this->moderationInfo = $moderation_information;
 }