You are here

public function TcaPluginManager::loadDefinitionsByModuleName in Token Content Access 2.0.x

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

Load plugins definition by module name.

Parameters

string $module_name: The string of module name.

Return value

array An array of plugin definitions for the entity type with ID $entity_type.

File

src/Plugin/TcaPluginManager.php, line 91

Class

TcaPluginManager
Provides the TCA plugin manager.

Namespace

Drupal\tca\Plugin

Code

public function loadDefinitionsByModuleName($module_name) {
  return array_filter($this
    ->getDefinitions(), function ($var) use ($module_name) {
    return $var['provider'] == $module_name;
  });
}