src/Viserio/Component/Parser/TaggableParser.php
protected function tag(string $tag, array $data): array
    {
        $taggedData = [];

        foreach ($data as $key => $value) {
            $name = \sprintf(
                '%s' . self::TAG_DELIMITER . '%s',
                $tag,
                $key
            );

            $taggedData[$name] = $value;
        }

        return $taggedData;
    }
protected function tag(string $tag, array $data): array
    {
        $taggedData = [];

        foreach ($data as $key => $value) {
            $name = \sprintf(
                '%s' . self::TAG_DELIMITER . '%s',
                $tag,
                $key
            );

            $taggedData[$name] = $value;
        }

        return $taggedData;
    }
Tag all keys with given tag.

@param string $tag
@param array  $data

@return array