Provides contextual views blocks.
Drupal module that provides contextual views blocks., (*1)
It's suggested to install the module via composer:, (*2)
composer require drunomics/contextual_views
, (*3)
The module is also available as drupal/contextual_views
via the drupal.org
release system, however only drunomics/contextual_views
gets patch level
releases. This is as drupal.org does not support semantic versioning for
modules yet., (*4)
Install as usual, see https://www.drupal.org/docs/8/extending-drupal-8/installing-contributed-modules-find-import-enable-configure-drupal-8 for further information., (*5)
views_block:news-news_by_channel
. The pattern is
views_block:{{ view }}-{{ display }}
. This way the defined class will be used
automatically instead of the default one. Drupal\contextual_views\Plugin\Block\ContextualViewsBlock
$view->setArguments()
. Then call the parent build.A complete code example for the described block can be viewed here: https://gist.github.com/fago/f51fe8861919a40c753a03c79a134848, (*6)
Always use the Module issue queue., (*7)
Development happens on GitHub using the pull request model: in case you are not familiar with that, please take a few minutes to read the GitHub article on using pull requests., (*8)
There are a few conventions that should be followed when contributing:, (*9)
For further information on how to contribute please refer to the documentation., (*10)