TractorCow\Fluent\Task\ConvertTranslatableTask
Provides migration from the Translatable module in a SilverStripe 3 website to the Fluent format for SilverStripe 4.
This task assumes that you have upgraded your website to run on SilverStripe 4 already, and you want to migrate the
existing data from your project into a format that is compatible with Fluent.
Don't forget to:
1. Back up your DB
2. dev/build
3. Log into the CMS and set up the locales you want to use
4. Back up your DB again
5. Log into the CMS and check everything
Synopsis
class ConvertTranslatableTask
extends BuildTask
{
- // members
- protected string $title = "Convert Translatable > Fluent Task";
- protected string $description = "Migrates site DB from SS3 Translatable DB format to SS4 Fluent.";
- private static string $segment = 'ConvertTranslatableTask';
- // methods
- protected void checkInstalled()
- public array fluentClasses()
- public void run()
- protected bool isPublished()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $segment
protected
- $description
- $title
Methods
protected
- checkInstalled() — Checks that fluent is configured correctly
- isPublished() — Determine whether the record has been published previously/is currently published
public
- fluentClasses() — Gets all classes with FluentExtension
- run()