FML/Elements/Dico.php
public function removeEntry($entryId, $language = null)
    {
        $entryId = (string)$entryId;
        foreach ($this->entries as $languageKey => $entries) {
            if ($language && $language !== $languageKey) {
                continue;
            }
            if (isset($this->entries[$languageKey][$entryId])) {
                unset($this->entries[$languageKey][$entryId]);
            }
        }
        return $this;
    }
public function removeEntry($entryId, $language = null)
    {
        $entryId = (string)$entryId;
        foreach ($this->entries as $languageKey => $entries) {
            if ($language && $language !== $languageKey) {
                continue;
            }
            if (isset($this->entries[$languageKey][$entryId])) {
                unset($this->entries[$languageKey][$entryId]);
            }
        }
        return $this;
    }
public function removeEntry ( $ entryId , $ language = null ) { $ entryId = ( string ) $ entryId ; foreach ( $ this -> entries as $ languageKey => $ entries ) { if ( $ language && $ language !== $ languageKey ) { continue ; } if ( isset ( $ this -> entries [ $ languageKey ] [ $ entryId ] ) ) { unset ( $ this -> entries [ $ languageKey ] [ $ entryId ] ) ; } } return $ this ; }
Remove entries of the given id

@api
@param string $entryId  Entry id that should be removed
@param string $language (optional) Only remove entry from the given language
@return static
Remove entries of the given id