Restruct\SilverStripe\FeaturedImages\FeaturedImageUpdateTask
Synopsis
class FeaturedImageUpdateTask
extends BuildTask
{
- // members
- protected bool $enabled = false;
- protected string $title = 'Migrate legacy has_one featured image to many_many relation';
- protected string $description = 'Between v1 & v2, featured image switched to a many_many, v2 auto-migrated existing has_ones. In v3 this functionality has been moved to a build task.';
- // methods
- public run()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Tasks
Line | Task |
---|---|
42 | the below function needs to be rewritten to loop over all DataObjects which have been extended with FeaturedImage for this task to actually work. |
Members
protected
- $description — string
- $enabled — Restruct\SilverStripe\FeaturedImages\bool
- $title — string
Methods
public
- run() — Migrate legacy has_one featured image to many_many relation