You are here

protected function StaticContextConfigure::disableMachineName in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/StaticContextConfigure.php \Drupal\page_manager_ui\Form\StaticContextConfigure::disableMachineName()

Determines if the machine_name should be disabled.

Parameters

$cached_values:

Return value

bool

Overrides ContextConfigure::disableMachineName

File

page_manager_ui/src/Form/StaticContextConfigure.php, line 109

Class

StaticContextConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function disableMachineName($cached_values, $machine_name) {
  if ($machine_name) {
    return !empty($this
      ->getContexts($cached_values)[$machine_name]);
  }
  return FALSE;
}