You are here

protected function EntityExtraField::getFieldTypePlugin in Entity Extra Field 8

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

Get field type plugin instance.

Return value

ExtraFieldTypePluginInterface The extra field type plugin.

2 calls to EntityExtraField::getFieldTypePlugin()
EntityExtraField::build in src/Entity/EntityExtraField.php
Build the extra field.
EntityExtraField::calculateDependencies in src/Entity/EntityExtraField.php
Calculates dependencies and stores them in the dependency property.

File

src/Entity/EntityExtraField.php, line 386

Class

EntityExtraField
Define entity extra field.

Namespace

Drupal\entity_extra_field\Entity

Code

protected function getFieldTypePlugin() {
  return \Drupal::service('plugin.manager.extra_field_type')
    ->createInstance($this
    ->getFieldTypePluginId(), $this
    ->getFieldTypePluginConfig());
}