Commit 715d8286 authored by mark_fullmer's avatar mark_fullmer Committed by mark_fullmer
Browse files

Issue #3127532 by mark_fullmer, karishmaamin, johnwebdev: Drupal 9 compatibility

parent 097bec5f
......@@ -2,10 +2,12 @@
namespace Drupal\layout_builder_modal;
use Drupal\Core\Security\TrustedCallbackInterface;
/**
* Class LayoutBuilderModal.
*/
class LayoutBuilderModal {
class LayoutBuilderModal implements TrustedCallbackInterface {
/**
* Adds contextual link metadata for Layout Builder Modal.
......@@ -42,4 +44,13 @@ class LayoutBuilderModal {
return $element;
}
/**
* {@inheritdoc}
*/
public static function trustedCallbacks() {
return [
'preRenderContextual',
];
}
}
......@@ -16,6 +16,13 @@ class LayoutBuilderModalTest extends BrowserTestBase {
*/
protected static $modules = ['layout_builder', 'layout_builder_modal'];
/**
* Specify the theme to be used in testing.
*
* @var string
*/
protected $defaultTheme = 'classy';
/**
* Tests the Layout Builder Modal settings form.
*/
......
......@@ -26,6 +26,13 @@ class LayoutBuilderModalTest extends WebDriverTestBase {
'node',
];
/**
* Specify the theme to be used in testing.
*
* @var string
*/
protected $defaultTheme = 'classy';
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment