.../node/src/Plugin/Block/SyndicateBlock.php | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/core/modules/node/src/Plugin/Block/SyndicateBlock.php b/core/modules/node/src/Plugin/Block/SyndicateBlock.php index 763501f..1e32128 100644 --- a/core/modules/node/src/Plugin/Block/SyndicateBlock.php +++ b/core/modules/node/src/Plugin/Block/SyndicateBlock.php @@ -48,27 +48,4 @@ public function build() { ); } - /** - * {@inheritdoc} - */ - public function buildConfigurationForm(array $form, FormStateInterface $form_state) { - $form = parent::buildConfigurationForm($form, $form_state); - - // @see ::isCacheable() - $form['cache']['#disabled'] = TRUE; - $form['cache']['#description'] = $this->t('This block is never cacheable, it is not configurable.'); - $form['cache']['max_age']['#value'] = 0; - - return $form; - } - - /** - * {@inheritdoc} - */ - public function getCacheMaxAge() { - // The 'Syndicate' block is never cacheable, because it is cheaper to just - // render it rather than to cache it and incur I/O. - return 0; - } - }