You are here

public function BlockEventVariables::getId in Hook Event Dispatcher 8

Get the block identifier.

Return value

string Identifier for the block.

File

src/Event/Preprocess/Variables/BlockEventVariables.php, line 26

Class

BlockEventVariables
Class BlockEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

public function getId() {
  return $this->variables['elements']['#id'];
}