public function BlockEventVariables::getId in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Variables/BlockEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\BlockEventVariables::getId()
Get the block identifier.
Return value
string Identifier for the block.
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ BlockEventVariables.php, line 29
Class
- BlockEventVariables
- Class BlockEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function getId() : string {
return $this->variables['elements']['#id'];
}