function EntityTypeManagerTest::providerTestHasHandler

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::providerTestHasHandler()
  2. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::providerTestHasHandler()
  3. 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::providerTestHasHandler()

Provides test data for testHasHandler().

Return value

array Test data.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 160

Class

EntityTypeManagerTest
@coversDefaultClass \Drupal\Core\Entity\EntityTypeManager @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public static function providerTestHasHandler() {
    return [
        [
            'apple',
            TRUE,
        ],
        [
            'banana',
            FALSE,
        ],
        [
            'pear',
            FALSE,
        ],
    ];
}

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