public function getNameById($id, $context = '', \ElggEntity $container = null) { $types = $this->getTypes(['context' => $context, 'container' => $container]); if (isset($types[$id])) { return $types[$id]->name; } return false; }