public function GridStackBase::getLabelFromId in GridStack 8.2
Randomize a label from ID.
File
- src/
Entity/ GridStackBase.php, line 180
Class
- GridStackBase
- Defines the base class for GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function getLabelFromId($label) {
$names = strpos($label, '__') === FALSE ? explode("_", $label) : explode("__", $label);
return implode(" ", $names);
}