private function hydrateDefinitionTags(Definition $definition, array &$definitionArray)
    {
        foreach ($definition->getTags() as $key => $tag) {
            $definitionTag = [
                'name' => $key,
            ];

            foreach (array_shift($tag) as $key => $option) {
                $definitionTag[$key] = $option;
            }

            $definitionArray['tags'][] = $definitionTag;
        }
    }
private function hydrateDefinitionTags(Definition $definition, array &$definitionArray)
    {
        foreach ($definition->getTags() as $key => $tag) {
            $definitionTag = [
                'name' => $key,
            ];

            foreach (array_shift($tag) as $key => $option) {
                $definitionTag[$key] = $option;
            }

            $definitionArray['tags'][] = $definitionTag;
        }
    }
private function hydrateDefinitionTags ( Definition $ definition , array & $ definitionArray ) { foreach ( $ definition -> getTags ( ) as $ key => $ tag ) { $ definitionTag = [ 'name' => $ key , ] ; foreach ( array_shift ( $ tag ) as $ key => $ option ) { $ definitionTag [ $ key ] = $ option ; } $ definitionArray [ 'tags' ] [ ] = $ definitionTag ; } }
Hydrate definition tags from entity into definition array.

@param Definition $definition       the definition to convert
@param array      $definitionArray the definition array (passed by reference)
Hydrate definition tags from entity into definition array .