TasksProcessor.php 538 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @package Grav.Common.Processors
  4. *
  5. * @copyright Copyright (C) 2015 - 2018 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Common\Processors;
  9. class TasksProcessor extends ProcessorBase implements ProcessorInterface
  10. {
  11. public $id = 'tasks';
  12. public $title = 'Tasks';
  13. public function process()
  14. {
  15. $task = $this->container['task'];
  16. if ($task) {
  17. $this->container->fireEvent('onTask.' . $task);
  18. }
  19. }
  20. }