public function Micon::getArchive in Micon 2.x
Same name and namespace in other branches
- 8 src/Entity/Micon.php \Drupal\micon\Entity\Micon::getArchive()
Gets the archive from a base64 encoded string.
Return value
string The restored archive data.
Overrides MiconInterface::getArchive
1 call to Micon::getArchive()
- Micon::archiveDecode in src/
Entity/ Micon.php - Take base64 encoded archive and save it to a temporary file for extraction.
File
- src/
Entity/ Micon.php, line 181
Class
- Micon
- Defines the Micon entity.
Namespace
Drupal\micon\EntityCode
public function getArchive() {
$data = implode('', $this
->get('archive'));
return unserialize(gzuncompress(stripslashes(base64_decode(strtr($data, '-_,', '+/=')))));
}