You are here

public static function EntityShareUuidLinkEnhancer::create in Entity Share 8.3

File

src/Plugin/jsonapi/FieldEnhancer/EntityShareUuidLinkEnhancer.php, line 33

Class

EntityShareUuidLinkEnhancer
Use UUID for internal link field value and add URL for import.

Namespace

Drupal\entity_share\Plugin\jsonapi\FieldEnhancer

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : self {
  $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
  $instance->languageManager = $container
    ->get('language_manager');
  return $instance;
}