src/Sulu/Bundle/CategoryBundle/Api/Category.php
private function getSingleMetaById($meta, $id)
    {
        if (null !== $id) {
            foreach ($meta as $singleMeta) {
                if ($singleMeta->getId() === $id) {
                    return $singleMeta;
                }
            }
        }
    }
private function getSingleMetaById($meta, $id)
    {
        if (null !== $id) {
            foreach ($meta as $singleMeta) {
                if ($singleMeta->getId() === $id) {
                    return $singleMeta;
                }
            }
        }
    }
private function getSingleMetaById ( $ meta , $ id ) { if ( null !== $ id ) { foreach ( $ meta as $ singleMeta ) { if ( $ singleMeta -> getId ( ) === $ id ) { return $ singleMeta ; } } } }
Takes an array of CollectionMeta and returns a single meta for a given id.

@param $meta
@param $id

@return CollectionMeta
Takes an array of CollectionMeta and returns a single meta for a given id .