protected EntityDisplayFormBase::getExtraFields()
Returns the extra fields of the entity type and bundle used by this form.
Return value
array An array of extra field info.
See also
\Drupal\Core\Entity\EntityManagerInterface::getExtraFields()
File
- core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 712
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\Form
Code
protected function getExtraFields() { $context = $this->displayContext == 'view' ? 'display' : $this->displayContext; $extra_fields = $this->entityManager->getExtraFields($this->entity->getTargetEntityTypeId(), $this->entity->getTargetBundle()); return isset($extra_fields[$context]) ? $extra_fields[$context] : array(); }
Please login to continue.