You are here

public function EntityUrlTest::providerTestLinkTemplates in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php \Drupal\Tests\Core\Entity\EntityUrlTest::providerTestLinkTemplates()

Provides test data for testLinkTemplates().

File

core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php, line 370
Contains \Drupal\Tests\Core\Entity\EntityUrlTest.

Class

EntityUrlTest
@coversDefaultClass \Drupal\Core\Entity\Entity @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestLinkTemplates() {
  return array(
    array(
      FALSE,
      array(
        'canonical' => TRUE,
        'bananas' => FALSE,
      ),
    ),
    array(
      TRUE,
      array(
        'canonical' => TRUE,
        'bananas' => TRUE,
      ),
    ),
  );
}