You are here

function consumers_install in Consumers 8

Implements hook_install().

File

./consumers.install, line 15
Install, update and uninstall functions for Consumers.

Code

function consumers_install() {
  Consumer::create([
    'label' => 'Default Consumer',
    'description' => 'This is the default consumer. This was created programmatically when the Consumers module was first installed. Feel free to edit, or delete this.',
    'is_default' => TRUE,
  ])
    ->save();
}