You are here

public function ConfigPagesBlock::getMachineNameSuggestion in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::getMachineNameSuggestion()
  2. 8.2 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::getMachineNameSuggestion()

Suggests a machine name to identify an instance of this block.

The block plugin need not verify that the machine name is at all unique. It is only responsible for providing a baseline suggestion; calling code is responsible for ensuring whatever uniqueness is required for the use case.

Return value

string The suggested machine name.

Overrides BlockPluginTrait::getMachineNameSuggestion

File

src/Plugin/Block/ConfigPagesBlock.php, line 113

Class

ConfigPagesBlock
Provides a generic ConfigPages block.

Namespace

Drupal\config_pages\Plugin\Block

Code

public function getMachineNameSuggestion() {
  return 'config_pages';
}