eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::store PHP Method

store() public method

Stores the $language into the cache.
public store ( eZ\Publish\SPI\Persistence\Content\Language $language )
$language eZ\Publish\SPI\Persistence\Content\Language
    public function store(Language $language)
    {
        $this->mapById[$language->id] = $language;
        $this->mapByLocale[$language->languageCode] = $language;
    }

Usage Example

 /**
  * Update language.
  *
  * @param \eZ\Publish\SPI\Persistence\Content\Language $language
  */
 public function update(Language $language)
 {
     $this->initializeCache();
     $this->innerHandler->update($language);
     $this->languageCache->store($language);
 }