public function AdminSettingsForm::__construct in Commerce Add To Cart Link 8
Same name and namespace in other branches
- 2.x src/Form/AdminSettingsForm.php \Drupal\commerce_add_to_cart_link\Form\AdminSettingsForm::__construct()
Constructs a AdminSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Entity\EntityTypeManagerInterface: The entity type manager.
Overrides ConfigFormBase::__construct
File
- src/
Form/ AdminSettingsForm.php, line 31
Class
- AdminSettingsForm
- Provides the admin form for editing module settings.
Namespace
Drupal\commerce_add_to_cart_link\FormCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
$this
->setConfigFactory($config_factory);
$this->roleStorage = $entity_type_manager
->getStorage('user_role');
}