You are here

public function TcaPluginManager::loadSupportedEntityTypes in Token Content Access 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/TcaPluginManager.php \Drupal\tca\Plugin\TcaPluginManager::loadSupportedEntityTypes()

Load the string IDs for the supported entity types.

Return value

array An array of entity type ID strings.

File

src/Plugin/TcaPluginManager.php, line 103

Class

TcaPluginManager
Provides the TCA plugin manager.

Namespace

Drupal\tca\Plugin

Code

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