define any head includes the step needs.

@return array
494401
public function GetHtmlHeadIncludes()
    {
        $aIncludes = parent::GetHtmlHeadIncludes();
        if (!is_array($aIncludes)) {
            $aIncludes = array();
        }

        $this->LoadManufacturer();
        if (!is_null($this->oActiveManufacturer) && !empty($this->oActiveManufacturer->fieldCss)) {
            $aIncludes[] = '<link href="'.TGlobal::OutHTML($this->oActiveManufacturer->fieldCss).'" rel="stylesheet" type="text/css" />';
        }

        return $aIncludes;
    }
518571
public function build() {
    $route_name = $this->routeMatch->getRouteName();
    if ($route_name !== 'acm_checkout.form') {
      return [];
    }

    // Load the CheckoutFlow plugin.
    $config = \Drupal::config('acm_checkout.settings');
    $checkout_flow_plugin = $config->get('checkout_flow_plugin') ?: 'multistep_default';
    $plugin_manager = \Drupal::service('plugin.manager.acm_checkout_flow');
    $checkout_flow = $plugin_manager->createInstance($checkout_flow_plugin, []);

    // Build the steps sent to the template.
    $steps = [];
    $visible_steps = array_filter($checkout_flow->getVisibleSteps(), function ($step_definition) {
      return (!isset($step_definition['hide_from_progress']));
    });
    $visible_step_ids = array_keys($visible_steps);
    $current_step_id = $checkout_flow->getStepId();
    $current_step_index = array_search($current_step_id, $visible_step_ids);

    // Get last step completed in the cart.
    $cart = $this->cartStorage;
    $cart_step_id = $cart->getCheckoutStep();
    $cart_step_index = array_search($cart_step_id, $visible_step_ids);

    $index = 0;
    foreach ($visible_steps as $step_id => $step_definition) {
      $is_link = FALSE;
      $completed = FALSE;
      if ($index < $current_step_index) {
        $position = 'previous';
      }
      elseif ($index == $current_step_index) {
        $position = 'current';
      }
      else {
        $position = 'next';
      }

      $label = $step_definition['label'];
      // Add a class if this step has been completed already.
      if ($index < $cart_step_index) {
        $completed = TRUE;
      }
      // Set the label to a link if this step has already been completed so that
      // the progress bar can be used as a sort of navigation.
      if ($index <= $cart_step_index && $index !== $current_step_index) {
        $is_link = TRUE;
        $label = Link::createFromRoute($label, 'acm_checkout.form', [
          'step' => $step_id,
        ])->toString();
      }

      $steps[] = [
        'id' => $step_id,
        'label' => $label,
        'position' => $position,
        'completed' => $completed,
        'is_link' => $is_link,
      ];

      $index++;
    }

    return [
      '#attached' => [
        'library' => ['acm_checkout/checkout_progress'],
      ],
      '#theme' => 'acm_checkout_progress',
      '#steps' => $steps,
    ];
  }
990929
public static function all(): array
    {
        return [
            self::OPTIONS,
            self::GET,
            self::HEAD,
            self::POST,
            self::PUT,
            self::PATCH,
            self::DELETE,
        ];
    }
772390
function setHead()
	{
		$this->head = array();
		$items = func_get_args();
		if (count($items)) foreach($items as $item) {
			if (is_string($item)) $this->head[] = array('text' => $item);
			elseif (is_array($item)) $this->head[] = $item;
		}
	}
1331331
public function getPredefinedCommands()
    {
        $tasks = [
            'check' => 'Check',
            'cleanup' => 'Cleanup',
            'current' => 'CurrentRelease',
            'deploy' => 'Deploy',
            'flush' => 'Flush',
            'ignite' => 'Ignite',
            'ignite-stubs' => 'Ignite\Stubs',
            'rollback' => 'Rollback',
            'setup' => 'Setup',
            'strategies' => 'Strategies',
            'teardown' => 'Teardown',
            'test' => 'Test',
            'update' => 'Update',
            'debug-tinker' => 'Development\Tinker',
            'debug-config' => 'Development\Configuration',
            'self-update' => 'Development\SelfUpdate',
            'plugin-publish' => 'Plugins\Publish',
            'plugin-list' => 'Plugins\List',
            'plugin-install' => 'Plugins\Install',
            'plugin-update' => 'Plugins\Updater',
        ];

        // Add user commands
        $userTasks = (array) $this->config->get('hooks.custom');
        $userTasks = array_filter($userTasks);
        $tasks = array_merge($tasks, $userTasks);

        return $tasks;
    }
845954
public function GetHtmlHeadIncludes()
    {
        $aIncludes = parent::GetHtmlHeadIncludes();
        if (!is_array($aIncludes)) {
            $aIncludes = array();
        }
        if (!is_null($this->oActiveOrderStep)) {
            $aStepIncludes = $this->oActiveOrderStep->GetHtmlHeadIncludes();
            if (count($aStepIncludes) > 0) {
                $aIncludes = array_merge($aIncludes, $aStepIncludes);
            }
        }

        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('pkgShop/shopBasket'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('pkgShop/OrderSteps'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('pkgShop/shopBasket/mails'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('pkgShop/shippingAndPayment'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('pkgShop/shippingAndPayment/handler'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('pkgExtranet/address'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('common/userInput'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('common/userInput/form'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('common/textBlock'));
        $aIncludes = array_merge($aIncludes, $this->getResourcesForSnippetPackage('common/navigation'));

        return $aIncludes;
    }
674564
public function toRouteDefinitionDetail()
    {
        $routes = [];

        foreach ($this->paths as $path) {
            $routes[] = [
                'label' => $this->name . '@' . $path->method,
                'middleware' => $this->getMiddleware($path),
                'prefix' => $path->path,
                'where' => $path->where,
                'domain' => $path->domain,
                'name' => $this->name,
                'resource' => $this->reflection->name,
                'method' => $path->method,
                'names' => $this->getNames($path)
            ];
        }

        return $routes;
    }
7408
public function getAlsoBoughtTheseProducts()
    {
        if ($this->_aLastProducts === null) {
            $this->_aLastProducts = false;
            // 5th order step
            $aBasketContents = array_values($this->getBasket()->getContents());
            if ($oBasketItem = $aBasketContents[0]) {
                if ($oProduct = $oBasketItem->getArticle(false)) {
                    $this->_aLastProducts = $oProduct->getCustomerAlsoBoughtThisProducts();
                }
            }
        }

        return $this->_aLastProducts;
    }
377281
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        foreach ($this->action_items as $child_widget) {
            $set->addEntrySet($child_widget->getHtmlHeadEntrySet());
        }

        return $set;
    }
1275303
private function includeAll()
    {
        $config = $this->readConfig();
        $files = array_merge(
            (array) $this->goals['include'],
            (array) $config['components']['include']
        );
        $this->includeGoals($files);
    }
284515
public function getDefinedMethods() : Collection
    {
        return collect($this->getMethods())
            ->filter(function ($method) {
                return $method->getFileName() == $this->getFileName();
            });
    }
504622
protected function define_structure() {

        $paths = array();
        $userinfo = $this->get_setting_value('userinfo');

        $area = new restore_path_element('grading_area', '/areas/area');
        $paths[] = $area;
        // attach local plugin stucture to $area element
        $this->add_plugin_structure('local', $area);

        $definition = new restore_path_element('grading_definition', '/areas/area/definitions/definition');
        $paths[] = $definition;
        $this->add_plugin_structure('gradingform', $definition);
        // attach local plugin stucture to $definition element
        $this->add_plugin_structure('local', $definition);


        if ($userinfo) {
            $instance = new restore_path_element('grading_instance',
                '/areas/area/definitions/definition/instances/instance');
            $paths[] = $instance;
            $this->add_plugin_structure('gradingform', $instance);
            // attach local plugin stucture to $intance element
            $this->add_plugin_structure('local', $instance);
        }

        return $paths;
    }
547476
private function getTotalSteps()
    {
        $total = 0;

        if (null != $this->configuration) {
            foreach ($this->configuration['steps']['groups'] as &$group) {
                $total += count($group['steps']);
            }
        }

        return $total;
    }
1327076
protected function getSourceHeaders()
    {
        $headers = [];

        if (!$this->user_agent_header || !$this->source_header) {
            $version = trim(file_get_contents(__DIR__ . '/../../VERSION'));

            if (!$this->user_agent_header) {
                $this->user_agent_header = sprintf('filestack-php-%s',
                    $version);
            }

            if (!$this->source_header) {
                $this->source_header = sprintf('PHP-%s',
                    $version);
            }
        }

        $headers['user-agent'] = $this->user_agent_header;
        $headers['filestack-source'] = $this->source_header;

        //user_agent_header
        return $headers;
    }
472862
public function requirements_met() {
		$met = true;

		foreach ( $this->requirements as $requirement ) {
			$met = $met && $requirement->is_met();
		}

		return $met;
	}
648783
public function getSteps()
    {
        // Carregar step do conexto e atual
        $step = $this->flow(router()->current()->parameter('step'));

        // Carregar view
        $view_id = sprintf('%s.%s', $this->prefixViewName, $step->key);
        if (! view()->exists($view_id)) {
            error('View of step "%s" not found', $view_id);
        }

        $view = view($view_id);
        $view->with('steps', $this->model->steps);
        $view->with('step', $step);
        $view->with('model', $this->model);
        $view->with($this->viewParams);

        $view->with('step_url', function ($step, $method = 'get') {
            return $this->stepUrl($step, $method);
        });

        return $view;
    }
464109
public function getTasks()
    {
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
            return [];
        }

        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
            return [];
        }

        if (array_key_exists($this->stage, $this->configuration['environments'][$this->environment])) {
            if (is_array($this->configuration['environments'][$this->environment][$this->stage])) {
                return $this->configuration['environments'][$this->environment][$this->stage];
            }
        }

        return [];
    }