You are here

public function GroupRoleMapper::getBaseRouteParameters in Group 8

Same name and namespace in other branches
  1. 2.0.x src/ConfigTranslation/GroupRoleMapper.php \Drupal\group\ConfigTranslation\GroupRoleMapper::getBaseRouteParameters()

Returns the route parameters for the base route the mapper is attached to.

Return value

array

Overrides ConfigEntityMapper::getBaseRouteParameters

File

src/ConfigTranslation/GroupRoleMapper.php, line 15

Class

GroupRoleMapper
Provides a configuration mapper for group roles.

Namespace

Drupal\group\ConfigTranslation

Code

public function getBaseRouteParameters() {
  return [
    $this->entityType => $this->entity
      ->id(),
    'group_type' => $this
      ->getEntity()
      ->get('group_type'),
  ];
}