public function executeDisplayCode() { $code = $this->getSetting('display_code'); $entity_manager = \Drupal::EntityManager(); $entity = $this->getEntity(); $fields = $this->getEntity()->toArray(); $value = $this->get('value')->getValue(); $display_output = NULL; eval($code); return $display_output; }