BlockBase::getMachineNameSuggestion
public function BlockBase::getMachineNameSuggestion
public BlockBase::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 BlockPluginInterface::getMachineNameSuggestion
File
- core/lib/Drupal/Core/Block/登录查看完整内容