You are here

public function EntityExtraField::getDisplayType in Entity Extra Field 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/EntityExtraField.php \Drupal\entity_extra_field\Entity\EntityExtraField::getDisplayType()

Get extra field display type.

Return value

string Get the display type.

Overrides EntityExtraFieldInterface::getDisplayType

File

src/Entity/EntityExtraField.php, line 171

Class

EntityExtraField
Define entity extra field.

Namespace

Drupal\entity_extra_field\Entity

Code

public function getDisplayType() : ?string {
  return $this
    ->getDisplay()['type'] ?? NULL;
}