meetsContentEntityRoutesCondition example



  /** * {@inheritdoc} */
  public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
    // If appropriate, process outbound to add a query parameter to the URL and     // remove the language option, so that URL negotiator does not rewrite the     // URL.
    // First, check if processing conditions are met.     if (!($request && !empty($options['route']) && $this->hasLowerLanguageNegotiationWeight() && $this->meetsContentEntityRoutesCondition($options['route']$request))) {
      return $path;
    }

    if (isset($options['language']) || $langcode = $this->getLangcode($request)) {
      // If the language option is set, unset it, so that the URL language       // negotiator does not rewrite the URL.       if (isset($options['language'])) {
        $langcode = $options['language']->getId();
        unset($options['language']);
      }

      
Home | Imprint | This part of the site doesn't use cookies.