You are here

public function BlockPluginInterface::getMachineNameSuggestion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Block/BlockPluginInterface.php \Drupal\Core\Block\BlockPluginInterface::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.

1 method overrides BlockPluginInterface::getMachineNameSuggestion()
BlockBase::getMachineNameSuggestion in core/lib/Drupal/Core/Block/BlockBase.php
Suggests a machine name to identify an instance of this block.

File

core/lib/Drupal/Core/Block/BlockPluginInterface.php, line 154
Contains \Drupal\Core\Block\BlockPluginInterface.

Class

BlockPluginInterface
Defines the required interface for all block plugins.

Namespace

Drupal\Core\Block

Code

public function getMachineNameSuggestion();