Skip to content
Snippets Groups Projects
Commit e302a17f authored by Atul Ghate's avatar Atul Ghate Committed by De Araujo, Renato [CONBR Non-J&J]
Browse files

Issue #3329634 #3296649 by atul ghate, ph7, RenatoG: Call to undefined...

Issue #3329634 #3296649 by atul ghate, ph7, RenatoG: Call to undefined function Drupal\block_class\Service\drupal_get_path()
parent f1c294fc
Branches 7.x-1.x
Tags 7.x-1.7
No related merge requests found
......@@ -603,7 +603,7 @@ class BlockClassHelperService {
$maxlength_block_class_field = $config->get('maxlength_block_class_field');
}
$image_path = '/' . drupal_get_path('module', 'block_class') . '/images/';
$image_path = '/' . \Drupal::service('extension.list.module')->getPath('block_class') . '/images/';
if ($config->get('field_type') == 'textfield') {
......
......@@ -19,7 +19,7 @@ class BlockClassTest extends BrowserTestBase {
*
* @var array
*/
public static $modules = ['block', 'block_class'];
protected static $modules = ['block', 'block_class'];
/**
* {@inheritdoc}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment