Ejemplo n.º 1
0
 /**
  * Load Portal specific metadata (heavily pruned to only show modules enabled for Portal)
  * @return array Portal metadata
  */
 protected function loadMetadata($args = array(), MetaDataContextInterface $context)
 {
     $data = parent::loadMetadata($args, $context);
     if (!empty($data['modules'])) {
         foreach ($data['modules'] as $modKey => $modMeta) {
             if (!empty($modMeta['isBwcEnabled'])) {
                 // portal has no concept of bwc so get rid of it
                 unset($data['modules'][$modKey]['isBwcEnabled']);
             }
         }
     }
     // Rehash the hash
     $data['_hash'] = $this->hashChunk($data);
     return $data;
 }