/** * {@inheritdoc} */ public function display(Definition $definition) { if (!$this->isNull()) { return $this->datetime->format($definition->getFormat()); } return parent::display($definition); }
/** * {@inheritDoc} */ public function display(Definition $definition) { if ($this->isNull()) { return 'NC'; } return sprintf($definition->getFormat(), (string) $this->getValue()); }