CleanFlexFormsCommand extends Command
Checks and clean up TCA records with a FlexForm which include values that don't match the connected FlexForm data structure.
Attributes
- #[AsCommand]
- 'cleanup:flexforms'
- 'Clean up database FlexForm fields that do not match the chosen data structure.'
Table of Contents
Methods
- __construct() : mixed
- configure() : mixed
- Configure the command by defining the name, options and arguments
- execute() : int
- Executes the command to find and update records with FlexForms where the values do not match the datastructures
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, FlexFormTools $flexFormTools) : mixed
Parameters
- $connectionPool : ConnectionPool
- $flexFormTools : FlexFormTools
configure()
Configure the command by defining the name, options and arguments
public
configure() : mixed
execute()
Executes the command to find and update records with FlexForms where the values do not match the datastructures
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface