You are here

MessageUiViewsContextualLinksBase.php in Message UI 8

Namespace

Drupal\message_ui

File

src/MessageUiViewsContextualLinksBase.php
View source
<?php

namespace Drupal\message_ui;

use Drupal\Component\Plugin\PluginBase;
use Drupal\message\Entity\Message;

/**
 * Base class for Message UI views contextual links plugins.
 */
abstract class MessageUiViewsContextualLinksBase extends PluginBase implements MessageUiViewsContextualLinksInterface {

  /**
   * The message object.
   *
   * @var \Drupal\message\Entity\Message
   */
  protected $message;

  /**
   * {@inheritdoc}
   */
  public function setMessage(Message $message) {
    $this->message = $message;
  }

  /**
   * {@inheritdoc}
   */
  public function getMessage() {
    return $this->message;
  }

}

Classes

Namesort descending Description
MessageUiViewsContextualLinksBase Base class for Message UI views contextual links plugins.