protected static function Entity::getEntityTypeId in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::getEntityTypeId()
- 8 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::getEntityTypeId()
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::getEntityTypeId()
Finds the entity type from configuration or plugin id.
Parameters
string $plugin_id: The plugin id.
Return value
string The entity type.
5 calls to Entity::getEntityTypeId()
- Entity::create in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Entity.php - Creates an instance of the plugin.
- EntityComment::create in core/
modules/ comment/ src/ Plugin/ migrate/ destination/ EntityComment.php - Creates an instance of the plugin.
- EntityContentBase::create in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentBase.php - Creates an instance of the plugin.
- EntityFile::create in core/
modules/ file/ src/ Plugin/ migrate/ destination/ EntityFile.php - Creates an instance of the plugin.
- EntityUser::create in core/
modules/ user/ src/ Plugin/ migrate/ destination/ EntityUser.php - Creates an instance of the plugin.
3 methods override Entity::getEntityTypeId()
- Book::getEntityTypeId in core/
modules/ book/ src/ Plugin/ migrate/ destination/ Book.php - Finds the entity type from configuration or plugin id.
- EntityFieldStorageConfig::getEntityTypeId in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ destination/ EntityFieldStorageConfig.php - Finds the entity type from configuration or plugin id.
- EntityRevision::getEntityTypeId in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityRevision.php - Finds the entity type from configuration or plugin id.
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Entity.php, line 88 - Contains \Drupal\migrate\Plugin\migrate\destination\Entity.
Class
- Entity
- Plugin annotation @MigrateDestination( id = "entity", deriver = "Drupal\migrate\Plugin\Derivative\MigrateEntity" )
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
protected static function getEntityTypeId($plugin_id) {
// Remove "entity:"
return substr($plugin_id, 7);
}