WissKI and Views for Developers

Drupal views is a bit of a Drupal in a Drupal. It has its own (entity) query, its own fields, ... This blog (part 1+2) helped me a bit to understand what's going on in views and how to implement views for a non-SQL-based entity type. Also, the EntityFieldQuery Views Backend module provides valuable code. Unfortunately, the D8 branch is currently defunct/not properly migrated.

At the moment, all of WissKI's integration code resides in the WissKI Core module and is two-fold:

  • the class WissKIEntityViewsData.php which gives the definitions of the entity type and of all the fields available in views
  • the classes under Plugin/views/*.

As you will notice, views is heavily plugin-based. Depending on what you are interested in you may look into the following files/dirs:

  • WissKIEntityViewsData.php gives the definitions of the entity type and of all the fields available in views. If you want to add more (views) fields or change their handlers like filters, field displays, sort behavior, ... (sorting is currently NOT possible! ... but hopefully soon) NOTE: The definitions are cached and only re-read on cache clear.
  • Plugin/views/query/WisskiIndividualQuery.php is the query plugin and the heart of WissKI's integration code that wraps the entity query and gathers the fields' values.
  • Plugin/views/filter/* contains plugins for filtering entities (WHERE clause / entity query condition). Depending on field type different filters are necessary, e.g. for string or numeric data. All WissKI paths are currently handled by string filters.
  • Plugin/views/field/* contains plugins for rendering single fields. Currently only a basic plugin for rendering paths is provided that handles multiple values. Otherwise, views' own plugins are used.
  • Plugin/views/display/* contains a single plugin for integration with Drupal's REST API. Views' own REST display plugin cannot be used as it suppresses the query execution and thus yields false-empty lists. See also here.
Permalink

Provides multiple learning environment of International standard with holistic system of education at an affordable cost for the successful life of young generation.
best paramedical college north india
agriculture college in dehradun
top agriculture College in north india
The goal of the society is to create professionally well skilled students To achieve the said goal, arrangements have been made with the pioneers and front runners both in India and abroad.
best cbse school in dehradun
Permalink

Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. Bed Linen Sets
Permalink

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Dentalhygiene Bern
Permalink

All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks MMA News
Permalink

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! Judi Online