diff --git a/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php b/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php index c373fdcd677..0495e1bd414 100644 --- a/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php +++ b/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php @@ -46,31 +46,6 @@ class Block extends DisplayPluginBase { return $options; } - /** - * The default block handler doesn't support configurable items, - * but extended block handlers might be able to do interesting - * stuff with it. - */ - public function executeHookBlockList($delta = 0, $edit = array()) { - $delta = $this->view->storage->get('name') . '-' . $this->display['id']; - $desc = $this->getOption('block_description'); - - if (empty($desc)) { - if ($this->display['display_title'] == $this->definition['title']) { - $desc = t('View: !view', array('!view' => $this->view->storage->getHumanName())); - } - else { - $desc = t('View: !view: !display', array('!view' => $this->view->storage->getHumanName(), '!display' => $this->display['display_title'])); - } - } - return array( - $delta => array( - 'info' => $desc, - 'cache' => $this->getCacheType() - ), - ); - } - /** * The display block handler returns the structure necessary for a block. */ diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index 8c1b241319c..06780c3aaa7 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -2431,11 +2431,6 @@ abstract class DisplayPluginBase extends PluginBase { return $this->renderArea('empty', TRUE); } - /** - * If this display creates a block, implement one of these. - */ - public function hookBlockList($delta = 0, $edit = array()) { return array(); } - /** * If this display creates a page with a menu item, implement it here. */ diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index db4f3a27881..d22c64a6321 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -1506,24 +1506,6 @@ class ViewExecutable { } } - /** - * Called to get hook_block information from the view and the - * named display handler. - */ - public function executeHookBlockList($display_id = NULL) { - // Prepare the view with the information we have. - - // This was probably already called, but it's good to be safe. - if (!$this->setDisplay($display_id)) { - return FALSE; - } - - // Execute the view - if (isset($this->display_handler)) { - return $this->display_handler->executeHookBlockList(); - } - } - /** * Determine if the given user has access to the view. Note that * this sets the display handler if it hasn't been.