You are here

public function BUEditorPluginManager::getHooks in BUEditor 8

Same name and namespace in other branches
  1. 8.2 src/BUEditorPluginManager.php \Drupal\bueditor\BUEditorPluginManager::getHooks()

Returns available hooks.

Return value

array An array of method names defined by plugin interface.

1 call to BUEditorPluginManager::getHooks()
BUEditorPluginManager::invokeAll in src/BUEditorPluginManager.php
Invokes a hook in all available plugins.

File

src/BUEditorPluginManager.php, line 94

Class

BUEditorPluginManager
Provides a plugin manager for BUEditor Plugins.

Namespace

Drupal\bueditor

Code

public function getHooks() {
  if (!isset($this->hooks)) {
    $this->hooks = get_class_methods('Drupal\\bueditor\\BUEditorPluginInterface');
  }
  return $this->hooks;
}