public function ViewsBlock::getMachineNameSuggestion in Drupal 8
Same name and namespace in other branches
- 9 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\BlockCode
public function getMachineNameSuggestion() {
$this->view
->setDisplay($this->displayID);
return 'views_block__' . $this->view->storage
->id() . '_' . $this->view->current_display;
}