protected static function EntityReferenceRevisions::getEntityTypeId in Entity Reference Revisions 8
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
File
- src/
Plugin/ migrate/ destination/ EntityReferenceRevisions.php, line 56
Class
- EntityReferenceRevisions
- Provides entity_reference_revisions destination plugin.
Namespace
Drupal\entity_reference_revisions\Plugin\migrate\destinationCode
protected static function getEntityTypeId($pluginId) {
// Remove "entity_reference_revisions:".
// Ideally, we would call getDerivativeId(), but since this is static
// that is not possible so we follow the same pattern as core.
return substr($pluginId, 27);
}