|
@@ 522-524 (lines=3) @@
|
| 519 |
|
if ($uuid = $entity->uuid()) { |
| 520 |
|
$form_state->setValueForElement($form['attributes']['data-entity-uuid'], $uuid); |
| 521 |
|
} |
| 522 |
|
else { |
| 523 |
|
$form_state->setError($form['attributes']['data-entity-id'], $this->t('Cannot embed @type entity @id because it does not have a UUID.', array('@type' => $entity_type, '@id' => $id))); |
| 524 |
|
} |
| 525 |
|
|
| 526 |
|
// Ensure that at least one Entity Embed Display plugin is present |
| 527 |
|
// before proceeding to the next step. Rasie an error otherwise. |
|
@@ 538-540 (lines=3) @@
|
| 535 |
|
} |
| 536 |
|
} |
| 537 |
|
} |
| 538 |
|
else { |
| 539 |
|
$form_state->setError($form['attributes']['data-entity-id'], $this->t('Unable to load @type entity @id.', array('@type' => $entity_type, '@id' => $id))); |
| 540 |
|
} |
| 541 |
|
} |
| 542 |
|
|
| 543 |
|
/** |