function EntityLinkTest::providerTestLink
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php \Drupal\Tests\Core\Entity\EntityLinkTest::providerTestLink()
- 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php \Drupal\Tests\Core\Entity\EntityLinkTest::providerTestLink()
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php \Drupal\Tests\Core\Entity\EntityLinkTest::providerTestLink()
Provides test data for testLink().
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityLinkTest.php, line 118
Class
- EntityLinkTest
- @coversDefaultClass \Drupal\Core\Entity\EntityBase @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public static function providerTestLink() {
$data = [];
$data[] = [
'some_entity_label',
'link text',
'link text',
];
$data[] = [
'some_entity_label',
NULL,
'some_entity_label',
];
$data[] = [
'some_entity_label',
'0',
'0',
];
$data[] = [
'some_entity_label',
'link text',
'link text',
'edit-form',
];
$data[] = [
'some_entity_label',
'link text',
'link text',
'edit-form',
];
$data[] = [
'some_entity_label',
'link text',
'link text',
'edit-form',
[
'foo' => 'qwer',
],
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.