Skip to content

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