public function getPageTypeComposerControlByIdentifier($identifier) { $bt = ConcreteBlockType::getByID($identifier); $ci = Loader::helper('concrete/urls'); $bx = new BlockControl(); $bx->setBlockTypeID($bt->getBlockTypeID()); $bx->setPageTypeComposerControlIconSRC($ci->getBlockTypeIconURL($bt)); $bx->setPageTypeComposerControlName($bt->getBlockTypeName()); return $bx; }