Problem/Motivation
Trying to use drush to export taxonomy terms fails with the error in the title.
Steps to reproduce
Run drush content_as_config:import taxonomy_term --style=full.
Proposed resolution
See attached patch.
Remaining tasks
Review patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3240287-no_controller_for_taxonomy-1.patch | 1.45 KB | bdimaggio |
Comments
Comment #2
bdimaggioThe first problem I encountered was that
content_as_config_content_as_config_controllers()was, reasonably, looking for a controller called TaaxonomyTermController. In fact, it'sTaxonomiesController. Once I fixed that, I found thatContentAsConfigCommands::getController()was passing the value of$this->controllerInfo[$entity_type]toinstanceof, which expects a variable rather than a string. Once I created a class instance from that string and threw in anempty()check just to be safe, drush exports ran nicely. (This proved true both for my own case, taxonomy terms, and for #3207282: Drush command missing controller for "block_content" entity type's of block_content.)Comment #4
daniel_j commentedFixed in release 1.0.3. Thanks!