Configuring and tweaking a view

I need help configuring and tweaking a view.
Briefly explained it is a view with relations to other nodes and paragraphs with exposed filters.

The view should be grouped by day (pargagraph-field-1) and within there sorted by daytime (pargagraph-field-2).
1. Currently i am having problem to avoid duplicate entries, when a node has more than one reference. I guess this could be solved with the built in aggregation function in views.
Sorting is also not working as intended.

Error running phpunit tests

I'm using Drupal 8.6.12, PHP 7.2.8 and PHPUnit 7.5.6 and I get this error:

$ ./vendor/bin/phpunit -c docroot/core/phpunit.xml.dist

Fatal error: Declaration of Drupal\Tests\PhpunitCompatibilityTrait::createMock($originalClassName) must be compatible with PHPUnit\Framework\TestCase::createMock($originalClassName): PHPUnit\Framework\MockObject\MockObject in C:\dev\acquia\sites\devdesktop\my-drupal\docroot\core\tests\Drupal\Tests\UnitTestCase.php on line 19

Drupal 8: CK Editor commenting out PHP

I did a Drupal upgrade from 7 to 8, and have an article that has some PHP code. I've noticed that everytime I edit the node, the PHP code gets commented out, and the rest of the lines of PHP get displayed as regular text in the wysiwyg editor.

Source Editor

WYSIWYG Editor

I've enabled the PHP Code module, and am using CKEditor for my editor. I have PHP evaluator enabled in the configuration.

Delete me if you can

How to delete topic?!

Share Specific Config Across Multi-Site?

I'm just starting the process of converting an existing Drupal singe-site installation into multi-site to accommodate some new sites.

The existing site is already built with a bunch of Content Types and Paragraphs which I'd like to be available for use on any additional sites that are added. 

How can I share these content types, paragraphs, etc across multiple sites while omitting other config and settings from the parent site? 

Thank you!

How to create a switch that changes the content of the page ?

I have a drupal site 8 th I use Twig to customize my pages.

I created 2 blocks view :

 - drupal_view('message_activity_stream_timeline_public', 'block_1') }}
 - drupal_view('message_activity_stream_timeline_private', 'block_1') }}

On my homepage, I want to put a switch that goes from block_1 to block_2 and vice versa.

When the switch is on the position PUBLIC it must display the block drupal_view('message_activity_stream_timeline_public', 'block_1') }}.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x