public function TcaPluginManager::loadDefinitionsByModuleName in Token Content Access 8
Same name and namespace in other branches
- 2.0.x 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\PluginCode
public function loadDefinitionsByModuleName($module_name) {
return array_filter($this
->getDefinitions(), function ($var) use ($module_name) {
return $var['provider'] == $module_name;
});
}