Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Working on a module in which I'm trying to utilize this hook. According to the API docs, the arguments to this hook are:
\Drupal\views\ViewExecutable $view: The view object about to be processed.
string $output: A flat string with the rendered output of the view.
\Drupal\views\Plugin\views\cache\CachePluginBase $cache: The cache settings.
However, the second argument ($output), does not in fact, come in as a "flat string". It comes in as an array. Also, shouldn't that be "&$output", instead of "$output"?
I'm a beginner with D8 but wrote own modules in D7. It is therefore possible that I miss some understanding to get easily what I need. All hints to help me step ahead are appreciated.
When I add a comment field to a node entity I have the possibility to configure for anonymous users between the following options:
I have a two language Drupal 8 site, en, sv and have enabled the language switcher block. The block show up on all single pages but it do not showing if I have a view list. The view appears in the selected language, but the Language Switcher Block do not show.
I'm having feelings about building a project using Drupal and I thought I'd better ask the community before getting hands on, so I'd basically love to hear opinions. Quick background: