You are here

public function StaticContextConfigure::contextExists in Page Manager 8

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

Custom "exists" logic for the context to be created.

Parameters

string $value: The name of the context.

$element: The machine_name element

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

bool Return true if a context of this name exists.

Overrides ContextConfigure::contextExists

File

page_manager_ui/src/Form/StaticContextConfigure.php, line 105
Contains \Drupal\page_manager_ui\Form\StaticContextConfigure.

Class

StaticContextConfigure

Namespace

Drupal\page_manager_ui\Form

Code

public function contextExists($value, $element, $form_state) {
  return FALSE;
}