Skip to content

pantoken / 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

Retourne

string

Exemple

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

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