public function FieldSource::__construct in UI Patterns 8
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
- src/
Plugin/ UiPatterns/ Source/ FieldSource.php, line 34
Class
- FieldSource
- Defines Fields API pattern source plugin.
Namespace
Drupal\ui_patterns\Plugin\UiPatterns\SourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManager $entity_field_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityFieldManager = $entity_field_manager;
}