public function EntityTypeInfo::__construct in Form mode manager 8
Same name and namespace in other branches
- 8.2 src/EntityTypeInfo.php \Drupal\form_mode_manager\EntityTypeInfo::__construct()
EntityTypeInfo constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: Current user.
\Drupal\form_mode_manager\FormModeManagerInterface $form_mode_manager: The form mode manager.
File
- src/
EntityTypeInfo.php, line 48
Class
- EntityTypeInfo
- Manipulates entity type information.
Namespace
Drupal\form_mode_managerCode
public function __construct(AccountInterface $current_user, FormModeManagerInterface $form_mode_manager) {
$this->currentUser = $current_user;
$this->formModeManager = $form_mode_manager;
}