base
class base implements extension_interface
A base class for extensions without custom enable/disable/purge code.
Properties
protected ContainerInterface | $container | ||
protected finder | $extension_finder | ||
protected migrator | $migrator | ||
protected string | $extension_name | ||
protected string | $extension_path |
Methods
__construct(ContainerInterface $container, finder $extension_finder, migrator $migrator, string $extension_name, string $extension_path)
Constructor
bool|array
is_enableable()
Indicate whether or not the extension can be enabled.
mixed
enable_step(mixed $old_state)
Single enable step that installs any included migrations
mixed
disable_step(mixed $old_state)
Single disable step that does nothing
mixed
purge_step(mixed $old_state)
Single purge step that reverts any included and installed migrations
array
get_migration_file_list()
Get the list of migration files from this extension
Details
at line 50
__construct(ContainerInterface $container, finder $extension_finder, migrator $migrator, string $extension_name, string $extension_path)
Constructor
at line 63
bool|array
is_enableable()
Indicate whether or not the extension can be enabled.
at line 74
mixed
enable_step(mixed $old_state)
Single enable step that installs any included migrations
at line 89
mixed
disable_step(mixed $old_state)
Single disable step that does nothing
at line 100
mixed
purge_step(mixed $old_state)
Single purge step that reverts any included and installed migrations
at line 122
protected array
get_migration_file_list()
Get the list of migration files from this extension