public function ConfigFormBuilder::__construct in Disable Field 8.2
ConfigFormAlter constructor.
Parameters
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
ConfigFormBuilder.php, line 45
Class
- ConfigFormBuilder
- Class ConfigFormAlter.
Namespace
Drupal\disable_fieldCode
public function __construct(AccountProxyInterface $current_user, EntityTypeManagerInterface $entityTypeManager) {
$this->currentUser = $current_user;
$this->roleStorage = $entityTypeManager
->getStorage('user_role');
}