/** * {@inheritdoc} */ public function toArray() { return ['field' => $this->field->getId()] + parent::toArray(); }
/** * Init the column. * * @param Entity $entity * @param string $id * @param string|\Closure $accessor */ public function __construct(Entity $entity, $id, $accessor = null) { parent::__construct($entity, $id); $this->accessor = $accessor; }