public function getRecords() {
\CRM_Core_Error::deprecatedWarning('APIv4 Entity::getLinks is deprecated.');
$result = [];
- /** @var \Civi\Api4\Service\Schema\SchemaMap $schema */
- $schema = \Civi::container()->get('schema_map');
+ $schema = CoreUtil::getSchemaMap();
foreach ($schema->getTables() as $table) {
$entity = CoreUtil::getApiNameFromTableName($table->getName());
// Since this is an api function, exclude tables that don't have an api