Skip to content

Commit 7a0bd17

Browse files
committed
Resolves a PHP notice from empty pattern libraries
fix(Derivative/PatternkitBlock)
1 parent 5eba182 commit 7a0bd17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Plugin/Derivative/PatternkitBlock.php

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static function create(ContainerInterface $container, $base_plugin_id): P
7070
public function getDerivativeDefinitions($base_definition): array {
7171
// Reset the discovered definitions.
7272
$this->derivatives = [];
73+
$patterns = [];
7374
// @todo: Add support for ContextDefinition('entity:node') etc.
7475
try {
7576
/** @var \Drupal\patternkit\Pattern[] $patterns */

0 commit comments

Comments
 (0)