Altax\Module\Task\Resource\DefinedTask::getBeforeTasks PHP Method

getBeforeTasks() public method

public getBeforeTasks ( )
    public function getBeforeTasks()
    {
        $tasks = array();
        foreach ($this->beforeTaskNames as $taskName) {
            $task = $this->container->get("tasks/" . $taskName, null);
            if (!$task) {
                throw new \RuntimeException("Registered before task '{$taskName}' is not found.");
            }
            $tasks[] = $task;
        }
        return $tasks;
    }