public function guessEntityEntry(string $entityFqcn)
    {
        $matchingEntityConfigs = \array_filter(
            $this->easyAdminConfig['entities'],
            function ($entityConfig) use ($entityFqcn) {
                return $entityFqcn === $entityConfig['class'];
            }
        );

        if (empty($matchingEntityConfigs)) {
            throw new \RuntimeException(
                \sprintf('No entity defined in EasyAdmin configuration matches %s FQCN.', $entityFqcn)
            );
        }

        if (1 < \count($matchingEntityConfigs)) {
            throw new \RuntimeException(
                \sprintf('More than 1 entity defined in EasyAdmin configuration matches %s FQCN.', $entityFqcn)
            );
        }

        return (string) \key($matchingEntityConfigs);
    }
public function guessEntityEntry(string $entityFqcn)
    {
        $matchingEntityConfigs = \array_filter(
            $this->easyAdminConfig['entities'],
            function ($entityConfig) use ($entityFqcn) {
                return $entityFqcn === $entityConfig['class'];
            }
        );

        if (empty($matchingEntityConfigs)) {
            throw new \RuntimeException(
                \sprintf('No entity defined in EasyAdmin configuration matches %s FQCN.', $entityFqcn)
            );
        }

        if (1 < \count($matchingEntityConfigs)) {
            throw new \RuntimeException(
                \sprintf('More than 1 entity defined in EasyAdmin configuration matches %s FQCN.', $entityFqcn)
            );
        }

        return (string) \key($matchingEntityConfigs);
    }
public function guessEntityEntry ( string $ entityFqcn ) { $ matchingEntityConfigs = \ array_filter ( $ this -> easyAdminConfig [ 'entities' ] , function ( $ entityConfig ) use ( $ entityFqcn ) { return $ entityFqcn === $ entityConfig [ 'class' ] ; } ) ; if ( empty ( $ matchingEntityConfigs ) ) { throw new \ RuntimeException ( \ sprintf ( 'No entity defined in EasyAdmin configuration matches %s FQCN.' , $ entityFqcn ) ) ; } if ( 1 < \ count ( $ matchingEntityConfigs ) ) { throw new \ RuntimeException ( \ sprintf ( 'More than 1 entity defined in EasyAdmin configuration matches %s FQCN.' , $ entityFqcn ) ) ; } return ( string ) \ key ( $ matchingEntityConfigs ) ; }
Returns EasyAdmin entity entry name for a FQCN.

@param string $entityFqcn

@return string

@throws \RuntimeException
Returns EasyAdmin entity entry name for a FQCN .