public function TcaPluginManager::loadDefinitionsByEntityType in Token Content Access 8
Same name and namespace in other branches
- 2.0.x src/Plugin/TcaPluginManager.php \Drupal\tca\Plugin\TcaPluginManager::loadDefinitionsByEntityType()
Load plugins implementing entity with id $entity_type.
Parameters
string $entity_type: The string ID of the entity type.
Return value
array An array of plugin definitions for the entity type with ID $entity_type.
1 call to TcaPluginManager::loadDefinitionsByEntityType()
- TcaPluginManager::createInstanceByEntityType in src/
Plugin/ TcaPluginManager.php - Create an instance of the first plugin found with string id $entity_type.
File
- src/
Plugin/ TcaPluginManager.php, line 76
Class
- TcaPluginManager
- Provides the TCA plugin manager.
Namespace
Drupal\tca\PluginCode
public function loadDefinitionsByEntityType($entity_type) {
return array_filter($this
->getDefinitions(), function ($var) use ($entity_type) {
return $var['entityType'] == $entity_type;
});
}