public Extension::unserialize($data)
File
- core/lib/Drupal/Core/Extension/Extension.php, line 185
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\Extension
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | public function unserialize( $data ) { $data = unserialize( $data ); // Get the app root from the container. $this ->root = DRUPAL_ROOT; $this ->type = $data [ 'type' ]; $this ->pathname = $data [ 'pathname' ]; $this ->filename = $data [ 'filename' ]; // @todo ThemeHandler::listInfo(), ThemeHandler::rebuildThemeData(), and // system_list() are adding custom properties to the Extension object. foreach ( $data as $property => $value ) { if (!isset( $this -> $property )) { $this -> $property = $value ; } } } |
Please login to continue.