public function ContentBlockPluginIdWidget::__construct in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginIdWidget::__construct()
- 8.8 modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginIdWidget::__construct()
- 10.3.x modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginIdWidget::__construct()
- 10.0.x modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginIdWidget::__construct()
- 10.1.x modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginIdWidget.php \Drupal\social_content_block\Plugin\Field\FieldWidget\ContentBlockPluginIdWidget::__construct()
Constructs a ContentBlockPluginIdWidget 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.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides ContentBlockPluginWidgetBase::__construct
File
- modules/
social_features/ social_content_block/ src/ Plugin/ Field/ FieldWidget/ ContentBlockPluginIdWidget.php, line 50
Class
- ContentBlockPluginIdWidget
- Plugin implementation of the 'content_block_plugin_id' widget.
Namespace
Drupal\social_content_block\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ContentBlockManagerInterface $content_block_manager, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings, $content_block_manager);
$this->entityTypeManager = $entity_type_manager;
}