How do I programmatically create an entity type from the install yml file?
I’m currently writing a module. In an update, I need to programmatically create a new entity type.
I have already created a suitable yml for installation. For the sake of consistency, I’d like to use the yml directly in my updateN hook. Is there anyway I can simply use the config yml to create this new entity type?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.