public function ViewsBlock::getMachineNameSuggestion in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getMachineNameSuggestion()
- 9 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::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;
}