You are here

public function FileEntityInterface::setMetadata in File Entity (fieldable files) 8.2

Sets the metadata property.

Parameters

string $property: A metadata property key.

int|null $value: A metadata property value.

1 method overrides FileEntityInterface::setMetadata()
FileEntity::setMetadata in src/Entity/FileEntity.php
Sets the metadata property.

File

src/FileEntityInterface.php, line 43

Class

FileEntityInterface
File entity interface.

Namespace

Drupal\file_entity

Code

public function setMetadata($property, $value);