saveTranslationActive example

elseif (!empty($data)) {
            // Update translation data in configuration override.             $this->saveTranslationOverride($name$langcode$data);
            $count++;
          }
        }
        elseif (locale_is_translatable($langcode)) {
          // If the language code is the active storage language, we should           // update. If it is English, we should only update if English is also           // translatable.           $active = NestedArray::mergeDeepArray([$active$processed], TRUE);
          $this->saveTranslationActive($name$active);
          $count++;
        }
      }
    }
    return $count;
  }

  /** * Filters override data based on default translatable items. * * @param array $override_data * Configuration override data. * @param array $translatable * Translatable data array. @see self::getTranslatableData() * * @return array * Nested array of any items of $override_data which did not have keys in * $translatable. May be empty if $override_data only had items which were * also in $translatable. */
Home | Imprint | This part of the site doesn't use cookies.