src/acdhOeaw/fedora/FedoraResource.php
protected function loadMetadata(bool $force = false) {
        if (!$this->metadata || $force) {
            $meta = $this->getMetadataFromFedora();

            if (count($meta->propertyUris()) === 0) {
                throw new RuntimeException('No resource metadata. Please check a value of the fedoraApiUrl configuration property.');
            }

            $this->setMetadata($meta);
        }
    }
protected function loadMetadata(bool $force = false) {
        if (!$this->metadata || $force) {
            $meta = $this->getMetadataFromFedora();

            if (count($meta->propertyUris()) === 0) {
                throw new RuntimeException('No resource metadata. Please check a value of the fedoraApiUrl configuration property.');
            }

            $this->setMetadata($meta);
        }
    }
protected function loadMetadata ( bool $ force = false ) { if ( ! $ this -> metadata || $ force ) { $ meta = $ this -> getMetadataFromFedora ( ) ; if ( count ( $ meta -> propertyUris ( ) ) === 0 ) { throw new RuntimeException ( 'No resource metadata. Please check a value of the fedoraApiUrl configuration property.' ) ; } $ this -> setMetadata ( $ meta ) ; } }
Loads current metadata from the Fedora.

@param bool $force enforce fetch from Fedora
(when you want to make sure metadata are in line with ones in the Fedora
or e.g. reset them back to their current state in Fedora)
Loads current metadata from the Fedora .