Unverified Commit 3b85dbaf authored by Diego Restrepo's avatar Diego Restrepo Committed by Stefan Auditor
Browse files

Issue #3310895 by diegoluisr: Call to a member function getValue() on null...

Issue #3310895 by diegoluisr: Call to a member function getValue() on null when add Group button is clicked
parent f492d15a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -205,9 +205,9 @@ function l10n_community_project_create(EntityInterface $entity) {
}

/**
 * Implements hook_ENTITY_TYPE_create().
 * Implements hook_ENTITY_TYPE_insert().
 */
function l10n_community_group_create(EntityInterface $entity) {
function l10n_community_group_insert(EntityInterface $entity) {
  /** @var \Drupal\group\Entity\Group $entity */
  $langcode = $entity->get('field_translation_language')->first()->getValue()['target_id'];
  $path_alias = PathAlias::create([