One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| // modules/custom/my_custom_module/src/Plugin/migrate/source/FileEntity.php | |
| namespace Drupal\my_custom_module\Plugin\migrate\source; | |
| use Drupal\Core\Database\Query\Condition; | |
| use Drupal\migrate\Row; | |
| use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity; | |
| /** | |
| * Drupal 7 file_entity source from database. |
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |
| <?php | |
| /** | |
| * A base class with getters and setters incorporated. | |
| */ | |
| class ObjectBase { | |
| /** | |
| * Setter function for a generic attribute. | |
| * | |
| * @param string $property_name |
| <?php | |
| function run($path) | |
| { | |
| $xml = simplexml_load_file($path); | |
| $project = $xml->testsuite; | |
| echo sprintf("total: %s msec", formatMsec($project['time'])) . PHP_EOL; | |
| foreach ($project->testsuite as $testsuite) { |