public function inject($identifier, $resource)
    {
        if (! $resource instanceof \core_kernel_classes_Resource) {
            throw new MetadataImportException(__('Metadata import requires an instance of core_kernel_classes_Resource to inject metadata'));
        }
        parent::inject($identifier, $resource);
    }
public function inject($identifier, $resource)
    {
        if (! $resource instanceof \core_kernel_classes_Resource) {
            throw new MetadataImportException(__('Metadata import requires an instance of core_kernel_classes_Resource to inject metadata'));
        }
        parent::inject($identifier, $resource);
    }
public function inject ( $ identifier , $ resource ) { if ( ! $ resource instanceof \ core_kernel_classes_Resource ) { throw new MetadataImportException ( __ ( 'Metadata import requires an instance of core_kernel_classes_Resource to inject metadata' ) ) ; } parent :: inject ( $ identifier , $ resource ) ; }
Inject an identified metadata value to a resource

{@inheritdoc}
Inject an identified metadata value to a resource