function PathFieldDefinitionTest::getModuleAndPath
Returns the module name and the module directory for the plugin.
Return value
array A one-dimensional array containing the following strings:
- The module name.
 - The module directory, e.g. DRUPAL_CORE . 'core/modules/path'.
 
Overrides BaseFieldDefinitionTestBase::getModuleAndPath
File
- 
              core/
modules/ path/ tests/ src/ Unit/ Field/ PathFieldDefinitionTest.php, line 23  
Class
- PathFieldDefinitionTest
 - @coversDefaultClass \Drupal\Core\Field\BaseFieldDefinition[[api-linebreak]] @group path
 
Namespace
Drupal\Tests\path\Unit\FieldCode
protected function getModuleAndPath() {
  return [
    'path',
    dirname(__DIR__, 4),
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.