src/Charcoal/Model/DescribableTrait.php
public function loadMetadata($metadataIdent = null)
    {
        if ($metadataIdent === null) {
            $metadataIdent = $this->metadataIdent();
        }

        $metadata = $this->metadataLoader()->load($metadataIdent, $this->metadataClass());
        $this->setMetadata($metadata);

        return $metadata;
    }
public function loadMetadata($metadataIdent = null)
    {
        if ($metadataIdent === null) {
            $metadataIdent = $this->metadataIdent();
        }

        $metadata = $this->metadataLoader()->load($metadataIdent, $this->metadataClass());
        $this->setMetadata($metadata);

        return $metadata;
    }
public function loadMetadata ( $ metadataIdent = null ) { if ( $ metadataIdent === null ) { $ metadataIdent = $ this -> metadataIdent ( ) ; } $ metadata = $ this -> metadataLoader ( ) -> load ( $ metadataIdent , $ this -> metadataClass ( ) ) ; $ this -> setMetadata ( $ metadata ) ; return $ metadata ; }
Load a metadata file and store it as a static var.

Use a `MetadataLoader` object and the object's metadataIdent
to load the metadata content (typically from the filesystem, as json).

@param  string $metadataIdent Optional ident. If none is provided then it will use the auto-genereated one.
@return MetadataInterface
Load a metadata file and store it as a static var .