You are here

public static function RevisionLogWidget::create in Hide Revision Field 8.2

Create the widget instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The symfony container.

array $configuration: The plugin configuration.

string $plugin_id: The the plugin id.

mixed $plugin_definition: The plugin definition.

Return value

\Drupal\Core\Plugin\ContainerFactoryPluginInterface|\Drupal\hide_revision_field\Plugin\Field\FieldWidget\RevisionLogWidget The widget.

Overrides WidgetBase::create

File

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

Class

RevisionLogWidget
Plugin implementation of the 'hide_revision_field_log_widget' widget.

Namespace

Drupal\hide_revision_field\Plugin\Field\FieldWidget

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings'], $container
    ->get('current_user'));
}