Skip to content
Snippets Groups Projects
Commit 856eb06f authored by dpi's avatar dpi
Browse files

Removed custom add entity link.

Primarily used for identity_contact.module. Perhaps it will return in the future.
parent 11e185c5
No related branches found
No related tags found
No related merge requests found
......@@ -155,19 +155,6 @@ class RegistrationForm extends ContentEntityForm {
'#tags' => FALSE,
'#parents' => array('entity', $entity_type_id),
];
// Add link: The 'add' link is something invented by RNG, it is not a
// standard link.
// @todo: replace with add and reference ajax popup + form.
if ($add_link = $entity_type->getLinkTemplate('add-form')) {
$form['identity_information']['identity'][$entity_type_id]['add'] = [
'#type' => 'link',
'#title' => $this->t('Add @entity_type', ['@entity_type' => $entity_type->getLabel()]),
'#url' => Url::fromUserInput($entity_type->getLinkTemplate('add-form')),
'#prefix' => '[',
'#suffix' => ']',
];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment