Опубликовано пользователем dm
-
if ($form_state->getFormObject() instanceOf EntityFormInterface) {
-
$nid = $form_state->getformObject()->getEntity()->id();
-
}
Опубликовано пользователем dm
if ($form_state->getFormObject() instanceOf EntityFormInterface) {
$nid = $form_state->getformObject()->getEntity()->id();
}