diff --git a/core/modules/config_translation/src/ConfigEntityMapper.php b/core/modules/config_translation/src/ConfigEntityMapper.php
index 7caf72c..5e662a7 100644
--- a/core/modules/config_translation/src/ConfigEntityMapper.php
+++ b/core/modules/config_translation/src/ConfigEntityMapper.php
@@ -121,7 +121,7 @@ public function populateFromRouteMatch(RouteMatchInterface $route_match) {
    * @return \Drupal\Core\Config\Entity\ConfigEntityInterface $entity
    *   The configuration entity.
    */
-  public function getEntity() {
+  protected function getEntity() {
     return $this->entity;
   }
 
@@ -140,7 +140,7 @@ public function getEntity() {
    * @return bool
    *   TRUE, if the entity was set successfully; FALSE otherwise.
    */
-  public function setEntity(ConfigEntityInterface $entity) {
+  protected function setEntity(ConfigEntityInterface $entity) {
     if (isset($this->entity)) {
       return FALSE;
     }
@@ -188,7 +188,7 @@ public function getBaseRouteParameters() {
    * @return bool
    *   TRUE if the entity type was set correctly; FALSE otherwise.
    */
-  public function setType($entity_type) {
+  protected function setType($entity_type) {
     if (isset($this->entityType)) {
       return FALSE;
     }
@@ -201,7 +201,7 @@ public function setType($entity_type) {
    *
    * @return string
    */
-  public function getType() {
+  protected function getType() {
     return $this->entityType;
   }
 
