Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getExporter() {
- if (empty($this->exporter)) {
- if (class_exists($this->info['exporter class'])) {
- $reflection = new \ReflectionClass($this->info['exporter class']);
- if ($reflection->implementsInterface('Drupal\ctools\ExporterInterface')) {
- $this->exporter = $reflection->newInstance();
- }
- else {
- return FALSE;
- }
- }
- else {
- return FALSE;
- }
- }
- return $this->exporter;
- }
Add Comment
Please, Sign In to add comment