function Context::hasContextValue

Overrides Context::hasContextValue

File

core/lib/Drupal/Core/Plugin/Context/Context.php, line 83

Class

Context
A Drupal specific context wrapper class.

Namespace

Drupal\Core\Plugin\Context

Code

public function hasContextValue() {
  return $this->getTypedDataManager()
    ->getCanonicalRepresentation($this->getContextData()) !== NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.