src/Charcoal/Admin/Ui/CollectionContainerTrait.php
public function collectionMetadata()
    {
        $proto = $this->proto();
        $collectionIdent = $this->collectionIdent();

        if (!$collectionIdent) {
            $collectionIdent = $this->collectionIdentFallback();
        }

        if ($collectionIdent && $proto->view()) {
            $collectionIdent = $proto->render($collectionIdent);
        }

        if (!$collectionIdent) {
            return [];
        }

        $objMeta = $proto->metadata();

        if (isset($objMeta['admin']['lists'][$collectionIdent])) {
            return $objMeta['admin']['lists'][$collectionIdent];
        } else {
            return [];
        }
    }
public function collectionMetadata()
    {
        $proto = $this->proto();
        $collectionIdent = $this->collectionIdent();

        if (!$collectionIdent) {
            $collectionIdent = $this->collectionIdentFallback();
        }

        if ($collectionIdent && $proto->view()) {
            $collectionIdent = $proto->render($collectionIdent);
        }

        if (!$collectionIdent) {
            return [];
        }

        $objMeta = $proto->metadata();

        if (isset($objMeta['admin']['lists'][$collectionIdent])) {
            return $objMeta['admin']['lists'][$collectionIdent];
        } else {
            return [];
        }
    }
public function collectionMetadata ( ) { $ proto = $ this -> proto ( ) ; $ collectionIdent = $ this -> collectionIdent ( ) ; if ( ! $ collectionIdent ) { $ collectionIdent = $ this -> collectionIdentFallback ( ) ; } if ( $ collectionIdent && $ proto -> view ( ) ) { $ collectionIdent = $ proto -> render ( $ collectionIdent ) ; } if ( ! $ collectionIdent ) { return [ ] ; } $ objMeta = $ proto -> metadata ( ) ; if ( isset ( $ objMeta [ 'admin' ] [ 'lists' ] [ $ collectionIdent ] ) ) { return $ objMeta [ 'admin' ] [ 'lists' ] [ $ collectionIdent ] ; } else { return [ ] ; } }
Return the current collection metadata.

@return array
Return the current collection metadata .