function ViewsBlock::getMachineNameSuggestion

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getMachineNameSuggestion()
  2. 8.9.x core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getMachineNameSuggestion()
  3. 10 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 147

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.