Remove publishLanguages.

@param \Sulu\Bundle\MediaBundle\Entity\FileVersionPublishLanguage $publishLanguages
543603
public function removePublishLanguage(\Sulu\Bundle\MediaBundle\Entity\FileVersionPublishLanguage $publishLanguages)
    {
        $this->publishLanguages->removeElement($publishLanguages);
    }
161713
public function getPublishLanguages()
    {
        $publishLanguages = [];
        /** @var FileVersionPublishLanguage $publishLanguage */
        foreach ($this->getFileVersion()->getPublishLanguages() as $publishLanguage) {
            $publishLanguages[] = $publishLanguage->getLocale();
        }

        return $publishLanguages;
    }
428529
protected function removeStandards(InstalledRepositoryInterface $repo, PackageInterface $package)
    {
        $srcStandards = $this->getSourceStandards($package);
        $dstStandards = $this->getDestinationStandards($repo);
        $this->io->writeError('    Removing PHP-CodeSniffer Standards:', false);
        foreach ($srcStandards as $srcStandard) {
            if (! $dstStandards->hasStandard($srcStandard)) {
                continue;
            }
            $this->io->writeError(sprintf(' <info>%s</info>', $srcStandard->getName()));
            $dstStandard = $dstStandards->getStandard($srcStandard);

            $this->filesystem->removeDirectory($dstStandard->getPath());
        }
    }
419497
public function removeLocationModule(\CampaignChain\CoreBundle\Entity\LocationModule $locationModules)
    {
        $this->locationModules->removeElement($locationModules);
    }
509228
public function removeBundle($bundle)
    {
        $bundles = $this->getBundles();
        if (($key = array_search($this->getBundleString($bundle), $bundles)) !== false) {
            unset($bundles[$key]);
            $this->setBundles($bundles);
        }
    }
343450
public function untranslatedLanguages($includeUnpublished = false)
    {
        $filename = substr($this->name, 0, -strlen($this->extension()));
        $config = Grav::instance()['config'];
        $languages = $config->get('system.languages.supported', []);
        $untranslatedLanguages = [];

        foreach ($languages as $language) {
            $path = $this->path . DS . $this->folder . DS . $filename . '.' . $language . '.md';
            if (file_exists($path)) {
                $aPage = new Page();
                $aPage->init(new \SplFileInfo($path), $language . '.md');
                if ($includeUnpublished && !$aPage->published()) {
                    $untranslatedLanguages[] = $language;
                }
            } else {
                $untranslatedLanguages[] = $language;
            }
        }

        return $untranslatedLanguages;
    }
799415
public function removeDocument(\Innova\CollecticielBundle\Entity\Document $documents)
    {
        $this->documents->removeElement($documents);
    }
396790
private function hidePagesIfNotTranslated($pages)
    {
        $language = GeneralUtility::_GET('L');
        if ($this->isPageNotTranslated($language)) {
            foreach ($pages as $key => $page) {
                $pageOverlay = $this->pageRepository->getPageOverlay($page, $language);
                if (empty($pageOverlay['_PAGES_OVERLAY'])) {
                    unset($pages[$key]);
                }
            }
        }

        return $pages;
    }
207577
protected function removeExtras($files): void
    {
        foreach ($files as $source => $target) {
            $this->installer->getIo()->write(
                sprintf('  - Skipped additional file(s) <comment>%s</comment>', $target),
                true
            );
        }
    }
1037350
public function removeTranslation(\Haven\WebBundle\Entity\FaqTranslation $translations) {
        $this->translations->removeElement($translations);
    }
875796
public function removeSecurityModule(\CampaignChain\CoreBundle\Entity\SecurityModule $securityModules)
    {
        $this->securityModules->removeElement($securityModules);
    }
1236548
protected function filterLanguages(array $contentLanguages): array
    {
        return array_filter(
            $this->languageService->loadLanguages(),
            function (Language $language) use ($contentLanguages) {
                return in_array($language->languageCode, $contentLanguages, true);
            }
        );
    }
232940
private function cleanTranslations(MediaInterface $media)
    {
        foreach ($media->getTranslations() as $trans) {
            if (0 == strlen($trans->getTitle()) && 0 == strlen($trans->getDescription())) {
                $media->removeTranslation($trans);
            }
        }
    }
126504
public function deleteTranslations($locales = null)
    {
        if ($locales === null) {
            $translations = $this->translations()->get();
        } else {
            $locales = (array) $locales;
            $translations = $this->translations()->whereIn($this->getLocaleKey(), $locales)->get();
        }
        foreach ($translations as $translation) {
            $translation->delete();
        }
        // we need to manually "reload" the collection built from the relationship
        // otherwise $this->translations()->get() would NOT be the same as $this->translations
        $this->load('translations');
    }
862007
public function setRelPublisher($relPublisher, $locale = null)
    {
        $this->translate($locale, false)->setRelPublisher($relPublisher);
        $this->mergeNewTranslations();

        return $this;
    }
1169879
public function removeTranslation(\Haven\PersonaBundle\Entity\EnterpriseTranslation $translations)
    {
        $this->translations->removeElement($translations);
    }
541845
public function deleteTranslatedFields($languageCode, $contentId, $versionNo = null)
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->delete('ezcontentobject_attribute')
            ->where('contentobject_id = :contentId')
            ->andWhere('language_code = :languageCode')
            ->setParameters(
                [
                    ':contentId' => $contentId,
                    ':languageCode' => $languageCode,
                ]
            )
        ;

        if (null !== $versionNo) {
            $query
                ->andWhere('version = :versionNo')
                ->setParameter(':versionNo', $versionNo)
            ;
        }

        $query->execute();
    }