This Drupal 8 module implements the CFR coding challenge according to the following specs:
Create a Drupal 8 module that does the following:
- Loads a page at /wiki which explains what this page does.
- The page should include a 'Search' form field.
- A user can either enter a value in the form field or provide a url parameter (/wiki/[parameter]).
- If a URL parameter is provided then the page displays wikipedia articles containing the parameter in the title.
- If no parameter is provided, then the page displays wikipedia articles for the term provided in the 'Search' form field.
- The page should display the term that is being searched.
- Search results should include the Title, a link to the article, and the extract for the article.
- Your module should include functional tests and relevant documentation.
- Check the module into github.
See: https://gist.github.com/mcewand/69510cebb214184174b5cf30b5b8298e
A working Drupal 8 installation.
- Drop module directory into the modules/custom directory in Drupal.
- Activate the module.
- Navigate to "/wiki"
Wikipedia has disabled title searching on their wikimedia install, so a full text search is being performed instead, including titles.
- Provide the user a way to specify the quantity of results per page, currently fixed at 10.
- Provide a way to specify which wikimedia instance to search currently fixed to Wikipedia English.