You are here

public function FormEntityContext::hasContextValue in Flexiform 8

Returns whether the context has a value.

Return value

bool TRUE if the context has a value, FALSE otherwise.

Overrides Context::hasContextValue

File

src/FormEntity/FormEntityContext.php, line 61

Class

FormEntityContext
Class for form entity contexts.

Namespace

Drupal\flexiform\FormEntity

Code

public function hasContextValue() {
  if (!$this->contextData) {
    $this
      ->getContextValue();
  }
  return parent::hasContextValue();
}