core/modules/help/src/Plugin/Block/HelpBlock.php | 3 ++- core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/modules/help/src/Plugin/Block/HelpBlock.php b/core/modules/help/src/Plugin/Block/HelpBlock.php index 7b86f9f..d86c1c7 100644 --- a/core/modules/help/src/Plugin/Block/HelpBlock.php +++ b/core/modules/help/src/Plugin/Block/HelpBlock.php @@ -9,6 +9,7 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Block\BlockBase; +use Drupal\Core\Block\NonLazyBuildableBlockPluginInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Routing\RouteMatchInterface; @@ -24,7 +25,7 @@ * admin_label = @Translation("Help") * ) */ -class HelpBlock extends BlockBase implements ContainerFactoryPluginInterface { +class HelpBlock extends BlockBase implements ContainerFactoryPluginInterface, NonLazyBuildableBlockPluginInterface { /** * Stores the help text associated with the active menu item. diff --git a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php index 6dd6f7f..daa0e09 100644 --- a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php +++ b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php @@ -9,6 +9,7 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Block\BlockBase; +use Drupal\Core\Block\NonLazyBuildableBlockPluginInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Session\AccountInterface; @@ -20,7 +21,7 @@ * admin_label = @Translation("Popular content") * ) */ -class StatisticsPopularBlock extends BlockBase { +class StatisticsPopularBlock extends BlockBase implements NonLazyBuildableBlockPluginInterface { /** * Number of day's top views to display.