function QuickEditEntityFieldAccessCheckTest::providerTestAccessForbidden
Provides test data for testAccessForbidden.
File
- 
              core/modules/ quickedit/ tests/ src/ Unit/ Access/ QuickEditEntityFieldAccessCheckTest.php, line 111 
Class
- QuickEditEntityFieldAccessCheckTest
- @coversDefaultClass \Drupal\quickedit\Access\QuickEditEntityFieldAccessCheck[[api-linebreak]] @group Access @group quickedit @group legacy
Namespace
Drupal\Tests\quickedit\Unit\AccessCode
public function providerTestAccessForbidden() {
  $data = [];
  // Tests the access method without a field_name.
  $data[] = [
    NULL,
    LanguageInterface::LANGCODE_NOT_SPECIFIED,
  ];
  // Tests the access method with a non-existent field.
  $data[] = [
    'not_valid',
    LanguageInterface::LANGCODE_NOT_SPECIFIED,
  ];
  // Tests the access method without a langcode.
  $data[] = [
    'valid',
    NULL,
  ];
  // Tests the access method with an invalid langcode.
  $data[] = [
    'valid',
    'xx-lolspeak',
  ];
  return $data;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
