getNodeTypes() public method

{@inheritDoc}
public getNodeTypes ( $nodeTypes = [] )
Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function getNodeTypes($nodeTypes = array())
 {
     $cacheKey = 'nodetypes: ' . serialize($nodeTypes);
     $result = $this->caches['meta']->fetch($cacheKey);
     if (!$result) {
         $result = parent::getNodeTypes($nodeTypes);
         $this->caches['meta']->save($cacheKey, $result);
     }
     return $result;
 }