initialParse($configuration)); $records = array_filter($rawRecords, [$this, 'filter01']); $this->records = $records; } protected function flattenRecord($record) { $row = new Row($record); $this->flattenRow($row); return $row->getSource(); } protected function filter01($record) { return ($record['uid'] ?? 0) > 1; } /** * {@inheritdoc} */ public function fields() { $ret = [ 'uid' => 'User ID', 'uuid' => 'UUID', 'langcode' => 'ISO 639 language code', 'preferred_langcode' => 'ISO 639 preferred language code', 'preferred_admin_langcode' => 'ISO 639 preferred administrative language code', 'name' => 'The user name (PK)', 'mail' => 'The current user e-mail address', 'timezone' => 'The user timezone', 'status' => 'The user status', 'access' => 'Latest access timestamp', 'login' => 'Latest login timestamp', 'init' => 'Initial user e-mail address', 'created' => 'User creation timestamp', 'changed' => 'Modification timestamp', 'default_langcode' => 'ISO 639 default language code', ]; return $ret; } /** * {@inheritdoc} */ public function getIds() { $ids = [ 'uid' => [ 'type' => 'integer', ], ]; return $ids; } }