First off, thank you so much for contributing this code. It works great once the following two errors are addressed:
Problem/Motivation
PHP Fatal error: Declaration of Drupal\migrate_source_ical\Plugin\migrate\source\Ical::count() must be compatible with Drupal\migrate\Plugin\migrate\source\SourcePluginBase::count($refresh = false) in [path-to-drupal]/modules/contrib/migrate_source_ical/src/Plugin/migrate/source/Ical.php on line 158
Error: Class '\Drupal\migrate_source_ical\Plugin\migrate\ICALReader' not found in [path-to-drupal]/modules/contrib/migrate_source_ical/src/Plugin/migrate/source/Ical.php on line 98
Proposed resolution
Change the former function definition to count($refresh = false), and change the capitalization of the latter class to IcalReader to match its filename.
I'll attach my patch momentarily. Thank you again!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3101074-0-migrate_source_ical-typos.patch | 1.3 KB | benstallings |
Issue fork migrate_source_ical-3101074
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
benstallings commentedComment #3
benstallings commentedComment #4
damienmckennaKind of a major bug as the class names need to match.
Looks good to me.
Comment #5
damienmckennaAs a reminder, the "assigned" field is for indicating that you're currently working on something, once you finish the work the field should be changed to "unassigned"; maintainers can identify by reading through the issue who worked on it to give the appropriate attribution.
Comment #12
das.gautam commentedThank you @benstallings @damienmckenna
Comment #13
das.gautam commented