protected function DbDumpCommand::getTemplate
protected DbDumpCommand::getTemplate()
The script template.
Return value
string The template for the generated PHP script.
File
- core/lib/Drupal/Core/Command/DbDumpCommand.php, line 372
Class
- DbDumpCommand
- Provides a command to dump the current database to a script.
Namespace
Drupal\Core\CommandCode
protected function getTemplate() { // The template contains an instruction for the file to be ignored by PHPCS. // This is because the files can be huge and coding standards are // irrelevant. $script = <<<'ENDOFSCRIPT' <?php // @codingStandardsIgnoreFile /** * @file * A database agnostic dump for testing purposes. * * This file was generated by the Drupal 8.0 db-tools.php script. */ use Drupal\Core\Database\Database; $connection = Database::getConnection(); {{TABLES}} ENDOFSCRIPT; return $script; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Command!DbDumpCommand.php/function/DbDumpCommand::getTemplate/8.1.x