Skip to content
This repository was archived by the owner on Feb 23, 2020. It is now read-only.

Commit 856eb06

Browse files
committed
Removed custom add entity link.
Primarily used for identity_contact.module. Perhaps it will return in the future.
1 parent 11e185c commit 856eb06

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Form/RegistrationForm.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,6 @@ public function form(array $form, FormStateInterface $form_state) {
155155
'#tags' => FALSE,
156156
'#parents' => array('entity', $entity_type_id),
157157
];
158-
159-
// Add link: The 'add' link is something invented by RNG, it is not a
160-
// standard link.
161-
// @todo: replace with add and reference ajax popup + form.
162-
if ($add_link = $entity_type->getLinkTemplate('add-form')) {
163-
$form['identity_information']['identity'][$entity_type_id]['add'] = [
164-
'#type' => 'link',
165-
'#title' => $this->t('Add @entity_type', ['@entity_type' => $entity_type->getLabel()]),
166-
'#url' => Url::fromUserInput($entity_type->getLinkTemplate('add-form')),
167-
'#prefix' => '[',
168-
'#suffix' => ']',
169-
];
170-
}
171158
}
172159
}
173160

0 commit comments

Comments
 (0)