select('boxes', 'b') ->fields('b', ['bid', 'body', 'info', 'format']); $query->orderBy('b.bid'); return $query; } /** * {@inheritdoc} */ public function fields() { return [ 'bid' => $this->t('The numeric identifier of the block/box'), 'body' => $this->t('The block/box content'), 'info' => $this->t('Admin title of the block/box.'), 'format' => $this->t('Input format of the custom block/box content.'), ]; } /** * {@inheritdoc} */ public function getIds() { $ids['bid']['type'] = 'integer'; return $ids; } }