You are here

public function OgGroup::uri in Organic groups 7

Return the URI of the entity the group is related to.

Overrides Entity::uri

File

./og.module, line 1349
Enable users to create and manage groups with roles and permissions.

Class

OgGroup
Main class for Group entities provided by Entity API.

Code

public function uri() {
  if ($entity = $this
    ->getEntity()) {
    return entity_uri($this->entity_type, $this
      ->getEntity());
  }
  return array();
}