Issue #3311466 by Temoor, andypost: Remove obsolete ViewExecutable::editing property access

merge-requests/2815/head
catch 2022-09-26 12:18:39 +01:00
parent e9afcbc368
commit 3254513103
2 changed files with 1 additions and 4 deletions

View File

@ -192,7 +192,7 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayPluginInte
$skip_cache = \Drupal::config('views.settings')->get('skip_cache');
if (empty($view->editing) || !$skip_cache) {
if (!$skip_cache) {
$cid = 'views:unpack_options:' . hash('sha256', serialize([$this->options, $options])) . ':' . \Drupal::languageManager()->getCurrentLanguage()->getId();
if (empty(static::$unpackOptions[$cid])) {
$cache = \Drupal::cache('data')->get($cid);

View File

@ -554,9 +554,6 @@ class PathPluginBaseTest extends UnitTestCase {
$view->storage = $view_entity;
// Skip views options caching.
$view->editing = TRUE;
$access_plugin = $this->getMockBuilder('Drupal\views\Plugin\views\access\AccessPluginBase')
->disableOriginalConstructor()
->getMockForAbstractClass();