Skip to content
Snippets Groups Projects

Issue #3244814: Refactor if-statement conditions

4 files
+ 5
5
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -136,7 +136,7 @@ class K8sNodeHeatmapBlock extends K8sBaseBlock {
];
// Add refresh js that uses Event Trigger method of updating the block.
if (($this->configuration['use_event_listener'] ?? TRUE) && empty($k8s_node)) {
if ($this->configuration['use_event_listener'] && empty($k8s_node)) {
$build['k8s_node_allocated_resources']['#attached']['library'][] = 'k8s/k8s_refresh_resource_trigger';
$build['k8s_node_allocated_resources']['#attached']['drupalSettings']['k8s']['use_event_listener'] = TRUE;
}
Loading