You are here

public function ViewsBlock::getMachineNameSuggestion in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getMachineNameSuggestion()

Overrides BlockPluginTrait::getMachineNameSuggestion

File

core/modules/views/src/Plugin/Block/ViewsBlock.php, line 145

Class

ViewsBlock
Provides a generic Views block.

Namespace

Drupal\views\Plugin\Block

Code

public function getMachineNameSuggestion() {
  $this->view
    ->setDisplay($this->displayID);
  return 'views_block__' . $this->view->storage
    ->id() . '_' . $this->view->current_display;
}