public function ContentEntity::__toString in Workbench Moderation to Content Moderation 8.2
Allows class to decide how it will react when it is treated like a string.
Overrides MigrateSourceInterface::__toString
File
- src/
Plugin/ migrate/ source/ ContentEntity.php, line 118
Class
- ContentEntity
- Loads certain fields from all content entities of a specific type.
Namespace
Drupal\wbm2cm\Plugin\migrate\sourceCode
public function __toString() {
return $this->storage
->getEntityType()
->getPluralLabel();
}