You are here

public function ContextTypedDataTest::getCanonicalRepresentation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Plugin/Context/ContextTypedDataTest.php \Drupal\Tests\Core\Plugin\Context\ContextTypedDataTest::getCanonicalRepresentation()

Helper mock callback to return the typed data value.

File

core/tests/Drupal/Tests/Core/Plugin/Context/ContextTypedDataTest.php, line 64
Contains \Drupal\Tests\Core\Plugin\Context\ContextTypedDataTest.

Class

ContextTypedDataTest
Tests that contexts work properly with the typed data manager.

Namespace

Drupal\Tests\Core\Plugin\Context

Code

public function getCanonicalRepresentation() {
  return $this->typedData
    ->getValue();
}