diff --git a/core/lib/Drupal/Core/Form/FormBase.php b/core/lib/Drupal/Core/Form/FormBase.php index e433828..36b50d1 100644 --- a/core/lib/Drupal/Core/Form/FormBase.php +++ b/core/lib/Drupal/Core/Form/FormBase.php @@ -101,7 +101,7 @@ public function setTranslationManager(TranslatorInterface $translation_manager) * @return \Symfony\Component\HttpFoundation\Request $request * The request object. */ - public function getRequest() { + protected function getRequest() { if (!$this->request) { $this->request = \Drupal::request(); } @@ -124,7 +124,7 @@ public function setRequest(Request $request) { * @return \Drupal\Core\Session\AccountInterface * The current user. */ - public function getCurrentUser() { + protected function getCurrentUser() { return $this->getRequest()->attributes->get('_account'); }