You are here

protected static function GatherContentEntity::getEntityTypeId in GatherContent 8.5

Finds the entity type from configuration or plugin ID.

Parameters

string $plugin_id: The plugin ID.

Return value

string The entity type.

Overrides EntityFieldDefinitionTrait::getEntityTypeId

1 call to GatherContentEntity::getEntityTypeId()
GatherContentEntity::create in src/Plugin/migrate/destination/GatherContentEntity.php
Creates an instance of the plugin.

File

src/Plugin/migrate/destination/GatherContentEntity.php, line 81

Class

GatherContentEntity
Custom migrate entity.

Namespace

Drupal\gathercontent\Plugin\migrate\destination

Code

protected static function getEntityTypeId($plugin_id) {

  // Remove "gc_entity:".
  return substr($plugin_id, 10);
}