public function BlockService::sanitizeIdOld in Opigno dashboard 8
Same name and namespace in other branches
- 3.x src/BlockService.php \Drupal\opigno_dashboard\BlockService::sanitizeIdOld()
Sanitizes ID string for legacy blocks.
2 calls to BlockService::sanitizeIdOld()
- BlockService::getAvailableBlocks in src/
BlockService.php - Returns available blocks.
- BlockService::getDashboardBlocksContents in src/
BlockService.php - Returns blocks contents.
File
- src/
BlockService.php, line 180
Class
- BlockService
- Class BlockService.
Namespace
Drupal\opigno_dashboardCode
public function sanitizeIdOld($id) {
return 'dashboard_' . str_replace(':', '_', $id);
}