/** * {@inheritdoc} */ public function dataProviderFactory() { if ($this->dataProvider && $this->dataProvider instanceof CacheDecoratedDataProvider) { return $this->dataProvider; } // Get the data provider from the subject of the decorator. $decorated_provider = $this->subject->dataProviderFactory(); $this->dataProvider = new CacheDecoratedDataProvider($decorated_provider, $this->getCacheController()); $plugin_definition = $this->getPluginDefinition(); $this->dataProvider->addOptions(array('renderCache' => $this->defaultCacheInfo(), 'resource' => array('version' => array('major' => $plugin_definition['majorVersion'], 'minor' => $plugin_definition['minorVersion']), 'name' => $plugin_definition['resource']))); return $this->dataProvider; }
/** * {@inheritdoc} */ public function addOptions(array $options) { $this->decorated->addOptions($options); }
/** * {@inheritdoc} */ public function addOptions(array $options) { $this->subject->addOptions($options); }