public function getObjectType() {
		$type = $this->object->getType();
		$subtype = $this->object->getSubtype() ? : 'default';
		$keys = [
			"interactions:$type:$subtype",
			$this->object instanceof Comment ? "interactions:comment" : "interactions:post",
		];
		foreach ($keys as $key) {
			if (elgg_language_key_exists($key, $this->language)) {
				return elgg_echo($key, array(), $this->language);
			}
		}
		return elgg_echo('interactions:post', $this->language);
	}
public function getObjectType() {
		$type = $this->object->getType();
		$subtype = $this->object->getSubtype() ? : 'default';
		$keys = [
			"interactions:$type:$subtype",
			$this->object instanceof Comment ? "interactions:comment" : "interactions:post",
		];
		foreach ($keys as $key) {
			if (elgg_language_key_exists($key, $this->language)) {
				return elgg_echo($key, array(), $this->language);
			}
		}
		return elgg_echo('interactions:post', $this->language);
	}
public function getObjectType ( ) { $ type = $ this -> object -> getType ( ) ; $ subtype = $ this -> object -> getSubtype ( ) ? : 'default' ; $ keys = [ "interactions:$type:$subtype" , $ this -> object instanceof Comment ? "interactions:comment" : "interactions:post" , ] ; foreach ( $ keys as $ key ) { if ( elgg_language_key_exists ( $ key , $ this -> language ) ) { return elgg_echo ( $ key , array ( ) , $ this -> language ) ; } } return elgg_echo ( 'interactions:post' , $ this -> language ) ; }
Prepares object type string
@return string
Prepares object type string