Beispiel #1
0
 public static function getTypeName($typeId)
 {
     if (!isset(self::$id_or_name_mapping[$typeId])) {
         $type = EntityType::get($typeId);
         self::$id_or_name_mapping["_id_" . $typeId] = $type != null ? $type->typeName : null;
     }
     return self::$id_or_name_mapping["_id_" . $typeId];
 }
 /**
  * {@inheritdoc}
  */
 public function get()
 {
     $this->definition['group_label'] = $this->t('Content', array(), array('context' => 'Entity type group'));
     return parent::get();
 }