You are here

function entity_share_cron_install in Entity Share Cron 8

Same name and namespace in other branches
  1. 8.2 entity_share_cron.install \entity_share_cron_install()
  2. 3.0.x entity_share_cron.install \entity_share_cron_install()

Implements hook_install().

File

./entity_share_cron.install, line 13
Install, update and uninstall functions for the Entity share cron module.

Code

function entity_share_cron_install() {

  // Initializes the queue.
  $queue_name = EntityShareCronServiceInterface::PENDING_QUEUE_NAME;
  \Drupal::queue($queue_name)
    ->createQueue();
}