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