You are here

public function ContentBlockPluginWidgetBase::__construct in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginWidgetBase::__construct()
  2. 8.8 modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginWidgetBase::__construct()
  3. 10.3.x modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginWidgetBase::__construct()
  4. 10.0.x modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginWidgetBase::__construct()
  5. 10.2.x modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginWidgetBase::__construct()

Constructs a ContentBlockPluginWidgetBase 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\social_content_block\ContentBlockManagerInterface $content_block_manager: The content block manager.

Overrides WidgetBase::__construct

2 calls to ContentBlockPluginWidgetBase::__construct()
ContentBlockPluginFieldWidget::__construct in modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginFieldWidget.php
Constructs a ContentBlockPluginFieldWidget object.
ContentBlockPluginIdWidget::__construct in modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php
Constructs a ContentBlockPluginIdWidget object.
2 methods override ContentBlockPluginWidgetBase::__construct()
ContentBlockPluginFieldWidget::__construct in modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginFieldWidget.php
Constructs a ContentBlockPluginFieldWidget object.
ContentBlockPluginIdWidget::__construct in modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php
Constructs a ContentBlockPluginIdWidget object.

File

modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php, line 43

Class

ContentBlockPluginWidgetBase
Class ContentBlockPluginWidgetBase.

Namespace

Drupal\social_content_block\Plugin\Field\FieldWidget

Code

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