Skip to content

pantoken / platforms/drupal/src / machineName

פונקציה: machineName()

machineName(name): string

ניסיוני

המר שם תצוגה לשם מכונה של Drupal (lower_snake).

פרמטרים

name

string

מחזיר

string

דוגמה

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

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