PHPStorm 8 supports most D8 features including Twig templates, container links, namespaces etc. To enable full support:
- Log into the admin section at localhost:8888/user.
- Make sure that the following plugins are enabled:
PHPStorm 8 supports most D8 features including Twig templates, container links, namespaces etc. To enable full support:
| // In a perfect world, you'd never have to do this. Wish I lived in a perfect world. | |
| /** | |
| * Convert a string to a usable class name | |
| * @param {string} stringToConvert String of text | |
| * @return {string} Usable class name | |
| */ | |
| function convertStringToClassName(stringToConvert) { | |
| if (typeof stringToConvert === 'string') { | |
| return stringToConvert.trim().replace(/[\s-_]+/g, '-').replace(/[^\w-]|^-|-$/g, '').replace(/-+(?=-)/, '').toLowerCase(); |