Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['field' => $this->field->getId()] + parent::toArray();
 }
Beispiel #2
0
 /**
  * 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;
 }