You are here

public function BlockService::sanitizeIdOld in Opigno dashboard 3.x

Same name and namespace in other branches
  1. 8 src/BlockService.php \Drupal\opigno_dashboard\BlockService::sanitizeIdOld()

Sanitizes ID string for legacy blocks.

Parameters

string $id: The block ID to be sanitized.

Return value

string The sanitized block ID.

Overrides BlockServiceInterface::sanitizeIdOld

1 call to BlockService::sanitizeIdOld()
BlockService::getAvailableBlocks in src/BlockService.php
Returns available blocks.

File

src/BlockService.php, line 262

Class

BlockService
The dashboard block manager service definition.

Namespace

Drupal\opigno_dashboard

Code

public function sanitizeIdOld(string $id) : string {
  return 'dashboard_' . str_replace(':', '_', $id);
}