PluginSchemaManagerInterface
Creates/drops the database schema for a plugin's entity classes. Takes EXPLICIT class names — never a path with a guessed namespace. The implementation resolves dependency order (foreign keys) itself and fails loudly on real errors; creating schema for classes whose tables already exist is a no-op for those classes, and dropping schema for classes whose tables are absent is likewise a no-op (idempotent both ways). Real errors — an unknown class, a failing connection — always throw.
PluginSchemaManagerInterface::createSchemaFor()
abstract public function createSchemaFor(array $entityClasses): voidCreate the database schema for a plugin's entity classes.
Parameters
| Name | Type | Description |
|---|---|---|
| $entityClasses | list<class-string> |
PluginSchemaManagerInterface::dropSchemaFor()
abstract public function dropSchemaFor(array $entityClasses): voidDrop the database schema for a plugin's entity classes.
Parameters
| Name | Type | Description |
|---|---|---|
| $entityClasses | list<class-string> |