You are here

public function PrivateMessageThreadMemberWidget::__construct in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/PrivateMessageThreadMemberWidget.php \Drupal\private_message\Plugin\Field\FieldWidget\PrivateMessageThreadMemberWidget::__construct()

Constructs a PrivateMessageThreadMemberWidget object.

Parameters

string $plugin_id: The plugin_id for the widget.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.

array $settings: The widget settings.

array $third_party_settings: Any third party settings.

\Drupal\Core\Access\CsrfTokenGenerator $csrfTokenGenerator: The CSRF token generator service.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/PrivateMessageThreadMemberWidget.php, line 71

Class

PrivateMessageThreadMemberWidget
Defines the private message thread member widget.

Namespace

Drupal\private_message\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, CsrfTokenGenerator $csrfTokenGenerator, AccountProxyInterface $currentUser, RequestStack $requestStack) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->csrfTokenGenerator = $csrfTokenGenerator;
  $this->currentUser = $currentUser;
  $this->requestStack = $requestStack;
}