You are here

public function InstallablePluginManager::firstInstalledPluginId in Markdown 8.2

Retrieves the first installed plugin identifier.

Return value

string The first installed plugin identifier.

Overrides InstallablePluginManagerInterface::firstInstalledPluginId

File

src/PluginManager/InstallablePluginManager.php, line 237

Class

InstallablePluginManager
Installable Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

public function firstInstalledPluginId() {
  return current(array_keys($this
    ->installedDefinitions())) ?: $this
    ->getFallbackPluginId();
}