You are here

protected function PanelizerWizardContextForm::isEditableContext in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Form/PanelizerWizardContextForm.php \Drupal\panelizer\Form\PanelizerWizardContextForm::isEditableContext()
  2. 8.4 src/Form/PanelizerWizardContextForm.php \Drupal\panelizer\Form\PanelizerWizardContextForm::isEditableContext()

Parameters

mixed $cached_values:

string $row:

Return value

bool

Overrides ManageContext::isEditableContext

File

src/Form/PanelizerWizardContextForm.php, line 127

Class

PanelizerWizardContextForm
Simple wizard step form.

Namespace

Drupal\panelizer\Form

Code

protected function isEditableContext($cached_values, $row) {
  if (!isset($cached_values['contexts'][$row])) {
    return FALSE;
  }
  $context = $cached_values['contexts'][$row];
  return !empty($context['value']);
}