You are here

public function RevisionLogWidget::__construct in Hide Revision Field 8.2

Constructs a RevisionLogWidget 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\Session\AccountProxyInterface $user: The current user.

Overrides WidgetBase::__construct

File

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

Class

RevisionLogWidget
Plugin implementation of the 'hide_revision_field_log_widget' widget.

Namespace

Drupal\hide_revision_field\Plugin\Field\FieldWidget

Code

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