src/Phlexible/Bundle/ElementtypeBundle/ElementtypeService.php
public function findElementtypeByUniqueId($uniqueId)
    {
        foreach ($this->elementtypeManager->findAll() as $elementtype) {
            if ($elementtype->getUniqueId() === $uniqueId) {
                return $elementtype;
            }
        }

        return null;
    }
public function findElementtypeByUniqueId($uniqueId)
    {
        foreach ($this->elementtypeManager->findAll() as $elementtype) {
            if ($elementtype->getUniqueId() === $uniqueId) {
                return $elementtype;
            }
        }

        return null;
    }
public function findElementtypeByUniqueId ( $ uniqueId ) { foreach ( $ this -> elementtypeManager -> findAll ( ) as $ elementtype ) { if ( $ elementtype -> getUniqueId ( ) === $ uniqueId ) { return $ elementtype ; } } return null ; }
Find element type by unique id.

@param string $uniqueId

@return Elementtype|null
Find element type by unique id .