Skip to content

pantoken-root / platforms/drupal/src / machineName

Fonction: machineName() ​

machineName(name): string

Expérimental

Convertir un nom d'affichage en un nom machine Drupal (lower_snake).

Paramètres ​

name ​

string

Renvoie ​

string

Exemple ​

ts
import { machineName } from "@pantoken/drupal";

machineName("Instructure"); // "instructure"
machineName("My Canvas Theme"); // "my_canvas_theme"