diff --git a/core/modules/block_content/src/BlockContentForm.php b/core/modules/block_content/src/BlockContentForm.php
index f7503d345d75900c30845fc984ab83370172255b..31ed14b857c1dace3b3abea816f90dff64aa44fa 100644
--- a/core/modules/block_content/src/BlockContentForm.php
+++ b/core/modules/block_content/src/BlockContentForm.php
@@ -41,7 +41,7 @@ public function form(array $form, FormStateInterface $form_state) {
   /**
    * {@inheritdoc}
    */
-  public function actions(array $form, FormStateInterface $form_state): array {
+  protected function actions(array $form, FormStateInterface $form_state): array {
     $element = parent::actions($form, $form_state);
 
     if ($this->getRequest()->query->has('theme')) {