src/Phlexible/Bundle/ElementtypeBundle/ElementtypeService.php
public function findElementtypeByType($type)
    {
        $elementtypes = [];
        foreach ($this->elementtypeManager->findAll() as $elementtype) {
            if ($elementtype->getType() === $type) {
                $elementtypes[] = $elementtype;
            }
        }

        return $elementtypes;
    }
public function findElementtypeByType($type)
    {
        $elementtypes = [];
        foreach ($this->elementtypeManager->findAll() as $elementtype) {
            if ($elementtype->getType() === $type) {
                $elementtypes[] = $elementtype;
            }
        }

        return $elementtypes;
    }
public function findElementtypeByType ( $ type ) { $ elementtypes = [ ] ; foreach ( $ this -> elementtypeManager -> findAll ( ) as $ elementtype ) { if ( $ elementtype -> getType ( ) === $ type ) { $ elementtypes [ ] = $ elementtype ; } } return $ elementtypes ; }
Find element type by type.

@param string $type

@return Elementtype[]
Find element type by type .