You are here

public function UserProfile::__construct in Flexiform 8

Overrides \Drupal\Component\Plugin\PluginBase::__construct().

Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides FlexiformFormEntityBase::__construct

File

src/Plugin/FlexiformFormEntity/UserProfile.php, line 37

Class

UserProfile
Form Entity for getting profiles from a user object.

Namespace

Drupal\flexiform\Plugin\FlexiformFormEntity

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
  $this->moduleHandler = $module_handler;
}