You are here

public function ContentBlockPluginFieldWidget::__construct in Open Social 10.0.x

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

Constructs a ContentBlockPluginFieldWidget 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.

array $field_configs: An array containing matching configuration object names.

Overrides ContentBlockPluginWidgetBase::__construct

File

modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginFieldWidget.php, line 54

Class

ContentBlockPluginFieldWidget
Plugin implementation of the 'content_block_plugin_field' widget.

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, array $field_configs) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings, $content_block_manager);
  $this->fieldConfigs = $field_configs;
}