You are here

public function RabbitHoleEntityPluginManager::loadSupportedEntityTypes in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RabbitHoleEntityPluginManager.php \Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginManager::loadSupportedEntityTypes()

Load the string IDs for the supported entity types.

Return value

array An array of entity type ID strings.

File

src/Plugin/RabbitHoleEntityPluginManager.php, line 87

Class

RabbitHoleEntityPluginManager
Provides the Rabbit hole entity plugin plugin manager.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function loadSupportedEntityTypes() {
  return array_values(array_map(function ($var) {
    return $var['entityType'];
  }, $this
    ->getDefinitions()));
}